On Sun, Oct 18, 2009 at 12:32 PM, Vincent Hanquez <vinc...@snarc.org> wrote: > Anthony Liguori wrote: >> >> Here's a first pass. I'll clean up this afternoon and post a proper >> patch. It turned out to work pretty well. > > It doesn't seems to validate anything ?? or is it just a lexer ?
That's just a lexer. I posted a parser earlier. However, now I'm thinking I should update the parser to use the lexer. > you're also including ' as a string escape value (is that the single quote > thing you were talking about ?) which strikes me as invalid JSON. It's a compatible extension. We accept strings with those escapes but our encoder won't generate them. > -- > Vincent >