JSON to XML
Convert JSON documents to structured XML online. Features standard attribute mapping (`@_attribute`), inner text mapping (`#text`), and automatic translation of JSON arrays into repeated sibling XML tags.
Interactive workspace loading...
How to Use JSON to XML
Key Features
Common Use Cases
- Creating XML payloads for legacy enterprise SOAP Web Services from modern JSON APIs.
- Generating XML sitemaps, RSS feeds, and product catalogs from JSON databases.
- Converting JSON configuration structures into Android XML or Maven POM files.
- Transforming application state into SVG vector files.
Frequently Asked Questions
Prefix the attribute key with `@_`. For example, `{ "user": { "@_id": "42", "name": "Alice" } }` converts to `<user id="42"><name>Alice</name></user>`.
Use `#text`. For example, `{ "button": { "@_type": "submit", "#text": "Click Me" } }` converts to `<button type="submit">Click Me</button>`.
Arrays generate repeated sibling elements with the array key name. For example, `{ "colors": { "color": ["red", "blue"] } }` converts to `<colors><color>red</color><color>blue</color></colors>`.