I have designed flow in nifi for XML to JSON converter. And for that, I have used GenerateFlow File and JoltTransformRecord(not JoltTransform JSON).
But I am getting null value in the JSON file with the schema(output in screen shot).
Please find my jolt specification:
[
{
"operation":"shift",
"spec":{
"to":"Receiver",
"from":"Sender",
"heading":"Heading",
"body":"Message"
}
}
]
Jolt Transformation DSL is chain.
As I am trying to convert XML to JSON and make a change in element name in one go through JoltTransformRecord. I think JoltTransformRecord accepts any form of payload and then converts it into JSON format and then applies the change in elements of the JSON file.
OutputInput file
Please help why this happens.
thanks