QBO3 XML to JSON converter

53 Views Asked by At

I would like to convert XML data to a JSON object within QBO3.

Is there a native method available for this?

1

There are 1 best solutions below

0
On

Try running the following in console:

var xml = "<head><node1>node1</node1><node2>node2</node2></head>"

var xmlToJson = new XMLtoJSON;

xmlToJson.fromStr(xml);

Note that in addition to the fromStr[ing] method, the XMLtoJSON object also has a fromFile method available.