How to create a json request for invokehttp processor from flowfile and replace the values in flowfile with response : NiFi
Hi,
I have a flowfile json request which looks like this. Actually flowfile is a csv file which I am converting to json first so that another json request can be created for invokehttp processor. But if this csv to json conversion is not required for it then I would prefer to keep it csv only.
{
"type": "record",
"name": "Location",
"fields": [{
"name": "Company_name",
"type": ["null", "string"]
},
{
"name": "City",
"type": ["null", "string"]
},
{
"name": "Country",
"type": ["null", "string"]
},
{
"name": "Latitude",
"type": ["null", "string"]
},
{
"name": "Longitude",
"type": ["null", "string"]
}
]
}
I need to send a request to invokehttp processor which look like below -
"Code":"A-5678",
"Latitude":"78.495603",
"Longitude":"5.969756",
"Continent":""
}


