JSON parser grammar

Oliver Hunt oliver at apple.com
Tue Jun 22 20:27:01 PDT 2010


On Jun 22, 2010, at 8:17 PM, Dean Landolt wrote:
> There are countless JSON parsers in the wild -- likely > 1 for almost every obscure language in existence, not counting all the one-offs. Any number of these were written with the expectation of not expecting control characters -- not too long ago I wrote a .NET streaming parser that I'm fairly sure would blow up at the first sight of a \t.

I am not suggesting that browser should not escape tabs, the issue is whether a conforming JSON implementation is allowed to parse a string that includes tab characters.

--Oliver


More information about the es-discuss mailing list