Convert a CSV file to JSON using Apache NiFi
I am trying to read a csv from local file system and convert the content into JSON format using Apache Nifi and put the JSON format file in the local system. I have succeeded in converting the first row of csv file but not other rows. What am I missing? Input: 1,aaa,loc1 2,bbb,loc2 3,ccc,loc3 and my nifi workflow is as here: http://www.filedropper.com/mycsvtojson My output is as below which is desired format but I want that to happen for all the rows. { "id" : "1", "name" : "aaa", "location" : "loc1" } There are a few different ways this could be done... A custom Java processor that reads in a