Bidirectional XML and JSON conversion with attribute handling
XML Input
JSON Output
About the conversion
XML attributes are surfaced in JSON with the configured prefix (default @_) — e.g. <book id="1"/> becomes { "@_id": "1" }. By default, repeated elements become arrays only when seen more than once; enable Always treat children as arrays for predictable JSON shapes. When going JSON → XML, the same prefix is used to identify which properties should be emitted as XML attributes.