tools

Data converter

0 B

    Conversion rules

    One root key. Attributes live in @attributes, text beside attributes in #text, repeated elements become arrays.

    {"user":{"@attributes":{"id":"7"},"#text":"Rick & friends"}}

    Mixed text and children, null, duplicate keys and DTDs are rejected. Comments are dropped; CDATA becomes text. CSV values stay text; nested objects flatten to dotted columns. TOML has no null, so empty values are left out. Pick the same format on both sides to pretty-print or compact a document.