edanalytics / earthmover

CLI tool for transforming collections of tabular source data into a variety of text-based data formats via YAML configuration and Jinja templates.
Apache License 2.0
19 stars 2 forks source link

fix nested json not working when rendering destination templates #104

Closed tomreitz closed 4 months ago

tomreitz commented 4 months ago

PR #97 fixed an issue where nested JSON was converted to a string when loaded from a source, but it was still stringified before being provided to a destination template. This PR changes type casting to only apply to bools, ints, and floats (not lists and objects), so nested JSON flows through and is accessible in a destination template.