...
For transformation from a given JSON document to a CSV document, a conversion from JSON to a text structure is required. Since the conversion rules from a given JSON to CSV could be vary a lot, a template based approach is often a good idea here.
...