3 ms·
One of the biggest advantages for XML are attributes and namespaces. I miss these in JSON. As AtlasBarfed mentioned, JSON has a native map and list structure
by taftster 7y ago
One of the biggest advantages for XML are attributes and namespaces. I miss these in JSON.
As AtlasBarfed mentioned, JSON has a native map and list structure in its syntax, which is sorely missed in XML. You have to rely on an XML Schema to know that some tag is expected to represent a map or list.
JSON with attributes and namespaces would be my ideal world.
- beatgammit 7y agoWhy do you want those? Attributes and namespaces just make in memory representation complicated. They're quite useful for markup, but I don't really know why you'd want them in a data format. Use JSON or a binary protocol for data, XML for markup.