QueryJSON / XML to JSON
Paste an XML document and QueryJSON turns it into JSON you can read, query and export. Attributes become fields, repeated elements become arrays, and nothing is uploaded.
Everything runs in your browser tab. Your data is never uploaded, and it is gone when you close the tab.
<catalog> <book id="b1"><title>Dune</title><price>9.99</price></book> <book id="b2"><title>Neuromancer</title><price>8.49</price></book> </catalog>
{
"catalog": {
"book": [
{ "id": "b1", "title": "Dune", "price": "9.99" },
{ "id": "b2", "title": "Neuromancer", "price": "8.49" }
]
}
}Paste it into the input box or open an .xml file, then click Parse.
The converted JSON replaces the XML in the input box, keeping the original nesting. Copy it from there.
Each repeated element becomes a row. Filter it, run SQL on it, or download it as CSV or as flat JSON rows.
id="b1", become fields alongside child elements."9.99" stays a string. Cast it in SQL with price::numeric when you need a number.book.title.Attributes become fields on the same object as the element's child elements, so <book id="b1"> becomes { "id": "b1", ... }.
XML stores every value as text, so values stay strings. You can cast them in SQL, for example "book.price"::numeric.
Yes. After parsing, each repeated element is a row in the table, and the CSV button downloads it.
No. The conversion runs in your browser tab and nothing is sent to a server.