I am trying to convert the JSON to XML but not getting exact output.In My JSON having array object it not converting that to XML array.Mainly array object is not converti
Xml-to-json library has method jsonToXml(json). I am the maintainer of the project.
jsonToXml(json)
var inputJSON = '{"body":{"entry": [{ "fullURL" : "abcd","Resource": "1234"},{ "fullURL" : "efgh","Resource": "5678"}]}}'; var xml = jsonToXml(inputJSON); // // // // abcd // 1234 // // // efgh // 5678 // //