Parsing of non-strict JSON seems broken
Hello,
Jsmn works great for me on strict JSON, but I am having trouble parsing any non-strict JSON, even the one from the site:
server: example.com post: 80 message: "hello world"
The results do not make sense, they have (start < end) condition broken and have wrong number of children.
I had a similar issue, where non-strict tokens would parse as JSMN_UNDEFINED tokens but the start/end values were correct and had no issues with number of children (at-least off the latest HEAD).
The solution I had was to remove the JSMN_STRICT check surrounding the failing to find the end of a primitive before end of buffer check here:
https://github.com/zserge/jsmn/blob/master/jsmn.c#L59
Actually I take that back, I must have experienced that issue with an older version of jsmn as even reverting my suggested change still works as expected in the latest HEAD.