Hi All,
I have a sample JSON of following format.
{
"a":"1",
"b":"2",
"c":"3",
"d":"4"
}
I have two requirements. First is to split them into two jsons as
following:-
{
"a":"1",
"b":"2"
}
and
{
"c":"3",
"d":"4"
}
and my second requirement is to create a nested JSON as following
{"a":"1","info":{"a":"1","b":"2","c":"3","d":"4"}}
I have tried to use the combination of EvaluateJSONPath and AttributeToJSON
processor but that did not worked to get the desired output. Can someone
please help.
Regards,
Shweta
--
View this message in context:
http://apache-nifi-developer-list.39713.n7.nabble.com/Struggling-with-modification-of-JSON-AttributeToJSON-tp7129.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.