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

Missing commas does not fail in strict mode #217

Open nrbrook opened 2 years ago

nrbrook commented 2 years ago

The following test fails in strict mode:

check(parse("{\"a\": \"a\" \"b\":\"b\"}", JSMN_ERROR_INVAL, 5));

Surely this should result in JSMN_ERROR_INVAL?

pt300 commented 2 years ago

You are correct and it is a currently known bug