XML → JSON
Convert XML data to clean JSON format. Free online XML to JSON converter with customizable options.
Input352 chars
Output
0 charsExamples
XML Input
<book id="123">
<title>Astro Development</title>
</book> JSON Output
{
"book": {
"@_id": "123",
"title": "Astro Development"
}
} Frequently Asked Questions
How are XML attributes represented in JSON?
By default, attributes are prefixed with `@_` to distinguish them from standard child nodes in the generated JSON.
What happens to text nodes in mixed content?
Mixed nodes are parsed as strings or objects depending on details, matching standard DOM-to-JSON parsing algorithms.