XML ↔ JSON
XML ↔ JSON. One tool, both directions.
Convert any XML document (including RSS, Atom, SVG, XHTML) to JSON with an attribute-prefix convention, or turn a JSON object into XML with your chosen root and item element names.
Direction
—
Attribute prefix prepended to attribute names
Text-content key used when an element has both text and children
Indent 0 = compact
Root element name
Array-item element name used when a JSON array has primitive values
Attribute prefix keys starting with this become attributes
Indent 0 = no pretty-print
Both directions
Attribute-prefix convention
Text-content key
Custom root & item tags
Namespace stripping