Search for a command to run...
All available keyboard shortcuts
Convert XML documents to JSON format instantly. Struct handles attributes (preserved with @_ prefix), nested elements, text content, CDATA sections, and mixed content. Ideal for consuming SOAP API responses, RSS feeds, or legacy XML data in modern JSON-based applications.
Yes. Struct processes everything 100% in your browser. Your data never leaves your device — nothing is sent to any server. Most online tools send your data to their servers for processing. Struct is different: you can verify this by disconnecting your network and confirming the tool still works. Read our privacy policy for full details.
Paste your XML into Struct's input panel. Struct parses the XML tree and converts elements to JSON objects, attributes to prefixed keys (@_attr), and text content to #text properties.
XML attributes are converted to JSON keys with an @_ prefix. For example, <item id="1"> becomes {"item": {"@_id": "1"}}. This preserves the distinction between attributes and child elements.
Yes. Paste the SOAP XML response and Struct converts it to JSON. Namespace prefixes are preserved in key names so you can identify the source schema.