# Jsonnet Code Recipes

If you are sending/working with lots of JSON data in files such as AWS CloudFormation templates, Jsonnet tool can help reducing the hassle of maintaining. Using Jsonnet templates, it is easier to organize data and reduce repeated code present in such JSON data. This post goes over a few common Jsonnet code recipes for generating JSON data.

### Automated tests

At least, make sure your jsonnet template files can compile. The following example bash script will find all the manifest files and try to compile that: