JSON or XML? Which one is better? Which one is faster? Which one should I use in my next project? Stop it! These things are not comparable. It's similar to comparing a bicycle and an AMG S65. Seriously, which one is better? They both can take you from home to the office, right? In some cases, a bicycle will do it better. But does that mean they can be compared to each other? The same applies here with JSON and XML. They are very different things with their own areas of applicability.
- Posted by: Yegor Bugayenko
- Posted on: November 17 2015 15:17 EST
The claim that JSON is a data format and XML is a language is flawed. XML is not a language and is just as much a data format as JSON. Seriously, XML is not Turing complete. The author seems to think that just because XML has XML Schema, XPATH, and XSL transformations, that this elevates XML into something it is not. In theory JSON could have the same ecosystem as XML. As a practical matter, theses technologies and tools can make using XML more viable and may be the only to integrate with various technologies (ESB, WSBPL,etc). However that does not change the essential character of what XML really is.