Question: how to convert csv to json in nifi?
Answer: Get a list of CSV files from a local directory. ExecuteScript processor to convert them to JSON, use the header row as the JSON schema, and set index/type attribute on each flow file. SplitJson processor to convert JSON array of objects to individual JSON records.