Convert XML to JSON


(Victor) #1

I am trying to convert XML that I get back from a REST call to JSON. What can I use to parse the XML as DOMParser does not appear to be available in the Squiz Javascript processor.

Thanks in advance


#2

Did you looked at XML Data source ?

If you must use JSON, you can use an Asset Listing to read the Shadow assets created by XML data source, and print it in a JSON format and then consume data from that JSON file.

Hope this helps…!


(Alan Rogger) #3

When I tried converting the XML to JSON then suddenly chrome keeps crashing windows 10 and not opening at all so please help me to fix the problem.