Hi Anuj, This method supposes your XML input file is not too complex. Have a look on this thread, this should answer your questions: https://mail-archives.apache.org/mod_mbox/nifi-users/201606.mbox/%3CCALo_M1_erYWJkWB=D7kJ17gvpmnyeVGmYiQH9=mqqktb-nh...@mail.gmail.com%3E
Hope this helps. 2016-06-09 22:22 GMT+02:00 Anuj Handa <anujha...@gmail.com>: > Hi , > > I am getting the below error of not a valid JSON content > > a text file containing XML was sconverted to JSON. > > 2016-06-09 16:10:11,765 ERROR [Timer-Driven Process Thread-10] > o.a.n.p.standard.EvaluateJsonPath > EvaluateJsonPath[id=475d43ec-549b-4378-81d5-778041558781] FlowFile > StandardFlowFileRecord[uuid=f238fd6d-ab1b-4d4b-b85d-77ade6102e18,claim=StandardContentClaim > [resourceClaim=StandardResourceClaim[id=1464296313030-621, > container=default, section=621], offset=116652, > length=2039],offset=0,name=xml1.txt,size=2039] did not have valid JSON > content. > 2016-06-09 16:10:11,771 ERROR [Timer-Driven Process Thread-6] > o.a.n.p.standard.EvaluateJsonPath > EvaluateJsonPath[id=475d43ec-549b-4378-81d5-778041558781] FlowFile > StandardFlowFileRecord[uuid=75ef7876-fb50-48f5-a651-c97212524e8a,claim=StandardContentClaim > [resourceClaim=StandardResourceClaim[id=1464296313030-621, > container=default, section=621], offset=118691, > length=2214],offset=0,name=xml1.txt,size=2214] did not have valid JSON > content. > 2016-06-09 16:10:11,779 ERROR [Timer-Driven Process Thread-8] > o.a.n.p.standard.EvaluateJsonPath > EvaluateJsonPath[id=475d43ec-549b-4378-81d5-778041558781] FlowFile > StandardFlowFileRecord[uuid=bc6855fb-8bc4-44ef-9196-41bab14c7aab,claim=StandardContentClaim > [resourceClaim=StandardResourceClaim[id=1465502918815-4632, > container=default, section=536], offset=531630, > length=2226],offset=0,name=xml1.txt,size=2226] did not have valid JSON > content. > > this is the properties of evaluate json content > > [image: Inline image 1] > > and ia m usig folloring XSLT to convert XML to JSON > > > https://community.hortonworks.com/articles/29474/nifi-converting-xml-to-json.html > > ANuj >