Why arrays sometimes disappear
A single same-name child in XML is often folded into an object, not an array. If the other side sometimes sends one and sometimes many, treat it as an array in the worst case.
JSON Tools for AI Developers · Runs locally
Natural language generation · Schema · Zod · OpenAPI · Function Calling · MCP · 30+ tools
Some payments, government, or legacy systems still emit XML, while frontend and Node services want JSON.
JSON → XML builds tags from nesting. XML → JSON folds elements into objects so you can Diff or generate a Schema.
Attributes, repeated children, and namespaces differ across conventions. Check key fields after convert.
Conversion stays local. Payloads with IDs or order numbers can be pasted as-is.
A single same-name child in XML is often folded into an object, not an array. If the other side sometimes sends one and sometimes many, treat it as an array in the worst case.
Attributes such as id and currency are folded into the object. When conventions disagree, read the convert result before you write a parser. Don't assume attributes stay on the tag.
They are folded into objects by common rules. Recheck unusual attribute prefixes or namespaces.
Same-name sibling nodes usually become an array. A single child may become an object.
YAML is closer to config files. XML is closer to legacy API payloads.
No.
The focus is structure. Don't treat the XML declaration or encoding header as a lossless round-trip.
As ordinary XML, yes. You still split Header / Body business nodes yourself.
If a JSON key cannot be a tag name, convert may rewrite or fail. Rename the key first.
Use CSV for tabular data. Use XML / JSON when you have nesting and attributes.