Developer tool

XML to JSON converter

Turn XML from feeds, SOAP APIs or config files into JSON you can use in code. Need the other way? Use JSON to XML.

Advertisement
JSON

Advertisement

How XML becomes JSON

A tag appears once here but many times in other files. Will it be an array?

Only when it repeats in this file. If your code always expects an array, wrap single values in an array after converting.

Are comments kept?

No. JSON has no comments, so XML comments are dropped. CDATA text is kept as normal text.

Advertisement