Validate XML and convert it into formatted JSON.
Validate XML and convert it into formatted JSON with one click. Attributes become keys prefixed with @, repeated elements become arrays, and mixed text is kept under #text. It is useful when you need to inspect or reuse data from XML feeds, configs and SOAP-style responses in a JSON-based workflow.
XML and JSON both describe structured data, but they model it differently. XML has elements, attributes and text nodes in a tree, while JSON has objects, arrays and simple values. There is no single standard mapping, so converters follow conventions. Here, each element becomes an object key, attributes appear as keys beginning with @, an element with only text becomes a string, an empty element becomes null, and sibling elements with the same name are grouped into an array. Because JSON objects have no attributes or ordering of mixed content, some detail can be lost in the conversion.
Each attribute becomes a key with an @ prefix, such as @id, next to the child element keys of the same object.
Elements with the same name under the same parent are collected into an array. A lone element stays a plain value.
DTDs and entities can be abused, so the tool refuses them rather than process them. Remove them to convert.
No. Text values are kept as strings, so 5 becomes the string 5 and true becomes the string true.
Yes. The root element name is the top-level key in the JSON output.