XML vs JSON (en)
Lately I am seeing lots of comparatives between JSON and XML. I do not want to be less than them, so I investigated a little to enter in this kind of comparatives.
Sadly, I realized that they are not comparable. To compare XML with JSON is just like compare an OpenOffice document with a text file. They are completely different things.
A JSON file is a set of grouped data. Nothing more. It allows a hierarchical structure, but you only have objects, vectors, vars and values.
An XML file is lots of things more. It is a set of structured data. It can be queried (xpath), checks (DTD, XML Schema), viaualization (CSS), process (XSL), etc.
But lots of people continue on comparing them. Let’s see their arguments:
Updated 2012/02/03: Applying some changes, thanks to Manuel Rivero. Thank you very much!