A SOAP response you need to inspect
Converting to JSON makes a deeply nested envelope far easier to read. Namespace prefixes are preserved, so you can still tell which part of the document each element came from.
Converts between XML and JSON in this tab using the browser's own XML parser. Nothing is uploaded, which matters for the configuration files and invoices these formats usually carry.
Find related browser-local tools for nearby tasks without starting another search.
Browse all developer and data toolsXML and JSON do not describe data the same way, so every converter between them has to invent a convention, and no two libraries invent quite the same one. XML has attributes; JSON has no equivalent. XML allows text and child elements side by side in one node; JSON objects cannot hold a bare string alongside named keys. XML makes no distinction between one element and a list of one, while JSON draws a hard line between a value and an array. Rather than leaving you to reverse-engineer the mapping from the output, the rules used here are stated plainly, and they are chosen to survive a round trip. The whole conversion runs in this tab, which is worth noting given that the XML people actually need to convert tends to be configuration, invoices and API payloads.
Converting to JSON makes a deeply nested envelope far easier to read. Namespace prefixes are preserved, so you can still tell which part of the document each element came from.
Both are XML with heavy repetition, which converts cleanly into arrays. A feed with one item produces a single object rather than an array, so guard for that in code.
As keys prefixed with @. An element written as <price currency="GBP">42.50</price> becomes an object with an @currency key and the value under #text.
Because XML carries no type information, so any conversion would be a guess. Guessing is how converters silently break postcodes, phone numbers and version strings.
You get an error with the parser's own explanation. The tool checks for the browser's parsererror element rather than assuming a parse succeeded.
No. With only one occurrence there is nothing in the document indicating a list, so it becomes a plain value. This is the main thing to allow for when consuming the output.
No. The browser's built-in parser does the work in this tab, and no request carries the document anywhere.
Turn JSON into well-formed XML in your browser, with escaping and element naming handled correctly.
Format, minify, and validate JSON locally in your browser. Inspect keys, values, nesting depth, and root type without sending private API data to a server.
Convert YAML to JSON or JSON to YAML in your browser. Handles multi-document files, follows YAML 1.2, and uploads nothing.
Turn an INI configuration file into JSON in your browser. Sections become nested objects and values stay strings.
Turn a URL query string into readable JSON in your browser. Repeated keys become arrays rather than being lost.