Many of you have probably wondered which format is better or which should be used. You might have even participated in a full blown nerd rage war on the matter.
Both formats are good when you want to describe a hierarchical structure.
Differences
- XML is a markup language and is good for documents description or text documents with formatting information.
- JSON syntax is light. It’s much easier to parse from JavaScript and that’s why it’s preferred for browser-based and Phonegap mobile applications.
So when should you use each one of them?
Continue reading JSON vs XML