News for hackers. Stuff that matters.
Re:Why is JSON so popular? Developers want out of the syntax... by m_eiman on Friday March 19, 2010 @11:02AM (#1204270)
I have to parse this whole thing into memory and then pull out the part I want?

You do that with JSON too, don't you? Are there SAX-like parsers for JSON?

If it's a big file it'll be big in JSON too.

Re:Why is JSON so popular? Developers want out of the syntax... by loup-vaillant on Friday March 19, 2010 @11:30AM (#1204335)
If the file is big, chances are that it is basically a sequence of relatively small chunks. You don't need SAX parsing for this. Just read the file one chunk at a time.
Re:Why is JSON so popular? Developers want out of the syntax... by jmillikin on Friday March 19, 2010 @11:36AM (#1204344)
There are a few event-based JSON parsers; yajl is the most famous, though its interpretation of the JSON spec is a bit liberal for my tastes.