Turn JSON into XML, or XML back into JSON. The conversion stays in the browser.
JSON and XML can hold the same tree, but the punctuation is different. This page writes JSON as elements, or reads elements back into JSON. It is not a schema checker and it does not keep the numeric type on the way back. Pretty-printing JSON alone is JSON formatter. YAML is JSON to YAML.
root. Array item name is used when the JSON value is an array at the top; the default is item.{"name":"Ada","n":2,"tags":["a","b"]} to XML. The next click sends that XML back to JSON.An object becomes nested elements. An array becomes the same tag repeated. A top-level array is wrapped in the root, and each entry uses the item name. A key that starts with @ becomes an attribute. #text becomes the text inside a tag. null becomes an empty tag. Names must start with a letter or underscore. Digits, spaces and most punctuation in a key are rejected. On the way back, repeated sibling tags become a JSON array, attributes come back as @name, and every value is text, so 2 returns as "2". A tag the browser cannot parse shows an XML error. Broken JSON shows a JSON error.
XML has no number type in this conversion. Text content is a JSON string. Put the number back yourself if the next step needs a number.
XML names cannot start with a digit and cannot contain a space. Rename the key, or use letters, digits, _, - and . after the first character.