News for hackers. Stuff that matters.
Re:Why I Love JSON by zbanks on Tuesday November 02, 2010 @12:51AM (#1859320)
Agreed. Even if the syntax is wildly different, the structure is similar.

This is where XML gets annoying. Sure, it does make sense in certain situations, but it quickly gets hard to map all the attributes and child nodes into a nice object.

Its easier to drill down to what you need without having to mess with arrays or attribute hashes or retrieving contents. (Retrieving contents is the worst part. Sure CDATA would theoretically help, but what do I do when the API I'm using ignores it? Parsing linebreaks, spaces, and empty tags becomes a hassle!)

There are no comments on this comment yet.