Open julienbeaussier opened 2 years ago
Hello,
As we were testing the lib quite a lot came the question of compliance toward JSON specs.
We've found this very interesting paper https://seriot.ch/projects/parsing_json.html and in particular the JSONTestSuite repository that aim at assessing how compliant various JSON parsers can be with the spec.
When I ran the test suite for yieldable-json, several "should have failed, but succeeded" cases surfaced.
For example, but not only:
["x",,]
[ "x", ParseError: ...]
{}}
{}
I'm wondering if we can do something about it, even though looking at the code, it seems sometimes to be on purpose.
Thank you!
Attached is the full list of cases that should have failed, but succeeded.
Hello,
As we were testing the lib quite a lot came the question of compliance toward JSON specs.
We've found this very interesting paper https://seriot.ch/projects/parsing_json.html and in particular the JSONTestSuite repository that aim at assessing how compliant various JSON parsers can be with the spec.
When I ran the test suite for yieldable-json, several "should have failed, but succeeded" cases surfaced.
For example, but not only:
["x",,]
will result in an array with the ParseError within[ "x", ParseError: ...]
{}}
will result in{}
I'm wondering if we can do something about it, even though looking at the code, it seems sometimes to be on purpose.
Thank you!
Attached is the full list of cases that should have failed, but succeeded.