A combination of parser and Json Converter to get Json objects from XML. It is similar to xml2js but its simple.
Install:
npm install ecjson
Example:
var ecjson=; ecjson;
Convert Complex XML to Json easily. All the Attributes of any element will be given as the data-members in json.
For Example, the xml:
Maxwell Annabelle Reminder Don't forget me this weekend!
will be converted as,
"messages": "note": "ID":"501" "to": "sendAs":"email" "value":"Maxwell" "from": "value":"Annabelle" "heading": "style":"Font:'Calibri'" "value":"Reminder" "body": "value":"Don't forget me this weekend!"