Flatten JSON files into CSV files

Created by @schelluri

The pipeline pattern flattens a JSON file, which has multiple objects, and turns it into a CSV file.



Sources: JSON Generator
Targets: CSV file
Snaps used: JSON Generator, JSON Formatter, JSON Parser, Script, CSV Formatter, File Writer


MS_Flatten_Script.slp (31.4 KB)

I don’t understand the behavior of CSV formatter snap here.

So normally, for snaps like file writer snap: it is one in one out: one document in, then one file out.

Why the CSV formatter snap does multiple documents in, only one document output out?