Dan Lowe

Thoughts on life, the universe, and everything.

Fork me on GitHub

Why is JSON so popular?

This is exactly right, and it’s the same reason I’ve been using YAML a lot lately.

There is a reason why JSON is becoming very popular as a data exchange format (more important than it being less verbose than XML): programmers are sick of writing parsers! But “wait”, you say — “surely there are XML parsers available for you to use so that you don’t have to roll your own…”. Yes, there are. But while XML parsers handle the low-level syntactic parsing of XML tags, attributes, etc…, you still need to walk the DOM tree or, worse, build one yourself with nothing but a SAX parser (Objective-C iPhone SDK I’m looking at you!).

Why is JSON so popular? Developers want out of the syntax business. | MongoLab