↧
Answer by Adam for Converting to xml to json
You can not do that using xml2jsonUse xml2js instead:var parseString = require('xml2js').parseString;var xml = "<Stat />"parseString(xml, function (err, result) { console.dir(result); // { Stat:...
View ArticleConverting to xml to json
I am using the xml2json module to convert a XML payload into JSON, but the i am seeing the following If i have the following var xml = <Stat />;var obj = xml2json.toJson(xml, {});The obj["Stat"]...
View Article