dscape/clarinet

Strict mode mentioned but not documented

Closed this issue · 1 comments

I see a mention to strict mode in the readme but I don't see any mention of it in the code. I have invalid JSON and the parser will just steam right through it and not throw any errors out.

The sample invalid JSON: [{"n"'ame":"Hello" }]

Strict mode is not available in clarinet, neither I have plans to add this in the short term.

However I would love to have this, as long as performance was closely monitored

See: http://writings.nunojob.com/2011/12/clarinet-sax-based-evented-streaming-json-parser-in-javascript-for-the-browser-and-nodejs.html

Please feel free to submit a PR patching this :)

Thank you!