JSON to XML Converter
Convert a JSON file into XML. A default root element is created and JSON array entries become individual XML elements.
Loading tool...
JSON to XML conversion rules
JSON has no root element, no attributes and no element names for array items, so a few conventions are needed:
- A root element (named
rootby default) wraps the whole document. - Each object property becomes a child element named after the property.
- An array property becomes an element containing one
<element>per entry. - Strings, numbers and booleans become text content. Reserved characters are escaped automatically.
nullbecomes an empty element.- With "Attributes from properties starting with @",
"@id": 1becomesid="1"and"#text"becomes text content.