Closed edsiper closed 8 years ago
any update on this ?
It would be nice if somebody could test that fix.
@pt300 I have added some tests and couple of them failed. zlolik/jsmn@a01d301373595892e2e5ff77dd4e7715f7897f11
@zlolik I think you overdone these tests a bit. pt300/jsmn@c3131d0
@pt300 You are right, with JSMN_STRING is my fault. And other cases are more about general json stricting, maybe #52. With some playing I have found one more invalid json interpreted as valid with PARENT_LINKS:
js = "{\"key 1\": 5678}: 1234}";
And this one return different error with or without JSMN_STRICT - this may be a feature:
js = "{\"key 1\": { b1234 } : c4321}";
New tests are here: zlolik/jsmn@29c999cd94bab9b7c6c0da4b04cd0df1508e97c1
thanks for reviewing this. After the latest changes, is it safe to use the current version in GIT master or is there anything pending ?
From what I know my pull request wasn't accepted so to benefit that fix you'd have to use my fork
jsmn parser pass the following wrong JSON message when JSMN_PARENT_LINKS is enabled:
test case
With JSMN_PARENT_LINKS set, the parser returns 2, when disabled it returns -2 (expected).