zserge / jsmn

Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
MIT License
3.72k stars 783 forks source link

Fully validate JSON in JSMN_STRICT mode #100

Closed DemiMarie closed 5 years ago

DemiMarie commented 7 years ago

This PR adds full validation of JSON in JSMN_STRICT mode. This is done by keeping additional state to indicate what the parser is currently expecting.

As a side effect, the ABI with JSMN_STRICT is no longer the same as that when JSMN_STRICT is not defined.

pt300 commented 5 years ago

While the strict parser still has room for improvement, I believe it's possible to achieve the same thing without additional state. Will close this PR for now, especially considering that lib no longer has the .c file