There is actually an extension to JSON: https://json5.org/
Unfortunately only very few tools support that.
Previously SecretPancake on Feddit
There is actually an extension to JSON: https://json5.org/
Unfortunately only very few tools support that.
Since XML can have attributes and children, it’s not as easy to convert to JSON.
Your JSON example is more akin to:
<address street_address="21 2nd Street" city="New York" ...></address>
JSON not supporting comments is a human rights violation
No arrays are not allowed. Attributes can only be strings. But the children are kind of an array.