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.
Maybe you can be helped with the JSON-XML mapping described here:
The readers and writers produced by the JsonReaderWriterFactory provide an XML API over JavaScript Object Notation (JSON) content. (source)
It can convert:
{
"readResult": {
"errors": [{
"code": 400
}]
}
}
to:
400
NB: I also implemented this conversion in JavaScript and in PHP.