News for hackers. Stuff that matters.
Re:Show HN: JSON5 — modern JSON by exDM69 on Monday May 28, 2012 @05:13AM (#4032589)
> It certainly would be great if there existed tools to let me write and update JSON with nicer syntax like this

The syntax is not necessarily nicer, it has only a few changes in the lexical structure and the syntactic structure is pretty much the same. If it's a little nicer for a human writing it, it's a little hairier for a parser to parse it.

But how much you spend time writing JSON anyway? Most of the time JSON is read and written by tools. Human intervention is rare.

In addition to that, the native JSON parsers in the browsers are probably implemented in native code, and this parser of yours is written in JavaScript. So it wouldn't be a surprise if this was an order of magnitude slower than a native JSON parser.

There are no comments on this comment yet.