Quantcast
Channel: Converting to xml to json - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Converting 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
Browsing all 2 articles
Browse latest View live




Latest Images