0

Spec : 10Mb XML,Jackson 2.6.8,jdk1.7

Ref URL : a) Convert XML with duplicate elements to JSON using jackson

b)How to convert XML to JSON using only Jackson?

This conversion was not completely in converting XML of size 10Mb to Json. some of the data was missing.

Any update thoughts , would be appreciated.

Community
  • 1
  • 1
N.S.Karthik
  • 485
  • 13
  • 29
  • Any error message? Did you set the Logging level to INFO or DEBUG? – Alboz Mar 08 '17 at 09:56
  • No Error in logs... but the Json generated does not have all of the tag and values from XML – N.S.Karthik Mar 08 '17 at 10:00
  • explain what kind of data is missing? – Coder Mar 08 '17 at 20:06
  • Sample Test.xml : Title 1 id1 val1 Title 2 id2 val2 Title 3 id3 val3 O/p converted Test.json resulted in the following json {"column":{"title":"Title 3","id":"id3","value":"val3"}} The Tags and values missing and code used xmlMapper = new XmlMapper(); node = xmlMapper.readTree(xmlContent); String jsonContent = jsonMapper.writeValueAsString(node) – N.S.Karthik Mar 09 '17 at 03:34

0 Answers0