What it does
Convert XML to JSON or build XML from JSON with one direction control. The XML-to-JSON mode configures attributes and repeated elements; the JSON-to-XML mode configures the root and declaration.
Example
XML input:
<book id="b1"><title>Dune</title></book>
Output (JSON):
{
"book": {
"@_id": "b1",
"title": "Dune"
}
}Limits and behavior
- Malformed XML or JSON reports an error and clears stale output.
- XML attributes use a configurable prefix, and repeated elements can be forced into arrays.
- Generated XML escapes text and attributes; input is processed locally.