jsmn allows invalid json even in strict mode

Issue #34 resolved
John Robinson
created an issue

jsmn very cool.. .but seems to allow constructs like

{"one", true} or {"one"\ntrue} as valid... seems like a bug... intentional?


Comments (3)

  1. Serge Zaitsev repo owner

    Good point! I've added key/value support today and just made some stricter validation for the cases you've mentioned and for some others. See commit 43dfba4c0ea1

    However jsmn was never meant to be a strict validator. It parses some reasonably good-looking JSON and you can validate the rest in your application code.

  2. Log in to comment