DEVELOPER TOOL
XML to JSON Converter
Convert XML into readable JSON in your browser. Attributes, repeated elements and text are preserved using a documented object mapping.
XML to JSON Converter
FREE ONLINE TOOLFiles are processed locally in this browser.
IN PRACTICE
Example
<book id="7"><title>North</title><tag>a</tag><tag>b</tag></book> becomes an object with @attributes.id, title and tag as an array.
GOOD TO KNOW
How are XML attributes represented?
Attributes are grouped under @attributes. Text-only elements become strings; elements containing both attributes or children store their text under #text. Repeated child names become arrays.