How to convert CSV to JSON using Apache Nifi?
I have a CSV file and I need to covert to json. How to draw a normal flow diagram. Please tell me the properties and figure details.
My understanding is 4 block has to there. 1.GenerateFLow 2.ConverttoAvro 3.Converttojson 4.Savethefile. I am new to the Nifi and I have installed nifi, struggling to configure
"model","speed","mileage"
"audi",4,2
"benz",4,10
"bmw",7,4
"jaguar",7,22
My Json
[
{
"model": "audi",
"speed": 4,
"mileage": 2
},
{
"model": "benz",
"speed": 4,
"mileage": 10
},
{
"model": "bmw",
"speed": 7,
"mileage": 4
},
{
"model": "jaguar",
"speed": 7,
"mileage": 22
}
]
I went through Convert a CSV file to JSON using Apache NiFi