How this tool computes its result
Uses fast-xml-parser library for bidirectional conversion. JSON -> XML: parses JSON, wraps in a root element if not already present (via ensureSingleRoot), then builds XML via XMLBuilder with attributes prefixed as @_. XML -> JSON: parses XML with XMLParser (preserving attributes as @_-prefixed keys), then stringifies to formatted JSON. Both directions handle well-formed input; malformed input surfaces library errors.
