lloyd/yajl — pull request #88 by fungos (2012-11-25 17:10:53+00:00)
Title: Request: support to simplified json

Added support to parse a simplified json format where it doesn't require redundant symbols as double quotes for strings and commas.

To be sure that this change wouldn't touch the normal parser I have duplicated the two string helper functions yajl_string_scan and yajl_lex_string as yajl_unquoted_string_scan and yajl_lex_unquoted_string. I know that it is uggly and we can merge these, but I felt it was safer this way.

In yajl_lex_lex I changed the cases f, t, n to jump to a invalid block that is the same as default, but this means we've lost the error yajl_lex_invalid_string.

I have tested all my json files with this parser and It does the job correctly.
Also, I haven't added any test cases for this, maybe later I will do, not sure :( .