In NIFI how to convert from CSV to JSON without CSV header. For each CSV row searate json flow file sholud create and send to next processor. Below is the csv
861359032561480,1,15.480237,190506144035,a
861359032561480,3,16.480237,190506144035,b
861359032561480,2,17.480237,190506144035,c
The expected json is :
{"test":861359032561480,"test2":"1","test3":15.48,"test4":190506144035,"test5":A}
In the above JSON second json value 1 is string, in third json value the value is restricted to 2 digits after the decimal, in fourth json value is uppercased.
So, how can I convert and apply these transformations?