I need to convert a json to xml and later on converting that json back to xml, but i am loosing the json array object while this conversion - I am using org.json lib.
There is no way that from the XML string
400
, the library can "guess" that code is an array
code
To do these kind of things, you will need to go via a Java model and use a Library such as Jackson to regenerate the JSON
There are several alternatives to map from XML to Java: XStream is one of them