I would like to convert XML
data to a JSON
object within QBO3
.
Is there a native method available for this?
I would like to convert XML
data to a JSON
object within QBO3
.
Is there a native method available for this?
Copyright © 2021 Jogjafile Inc.
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 afromFile
method available.