Created on 10-28-201608:45 PM - edited 08-17-201908:39 AM
Apache NiFi 1.0.0 has a lot of cool features, but no JSON-to-CSV converter yet.
For my use case, I wanted to split one JSON file that had 5,000 records into 5,000 CSVs. You could also through a MergeContent processor in there and make one file. My data came from the excellent test data source, RandomUser. They provide a free API to pull down data, https://api.randomuser.me/?results=5000&format=pretty. I chose pretty to get formatted JSON with multiple lines which is easier to parse.
This is an example of JSON returned from that service: