Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON parser test failures #73

Open
lod opened this issue May 1, 2018 · 1 comment
Open

JSON parser test failures #73

lod opened this issue May 1, 2018 · 1 comment

Comments

@lod
Copy link

lod commented May 1, 2018

A JSON test suite has been produced which tests most commonly available JSON parsers against JSON corner cases
http://seriot.ch/parsing_json.php
https://github.com/nst/JSONTestSuite

These two test files are reported as causing the parser to crash.
https://github.com/nst/JSONTestSuite/blob/master/test_parsing/n_structure_100000_opening_arrays.json
https://github.com/nst/JSONTestSuite/blob/master/test_parsing/n_structure_open_array_object.json

These two test files are reported as being incorrectly parsed.
https://github.com/nst/JSONTestSuite/blob/master/test_parsing/y_object_escaped_null_in_key.json
https://github.com/nst/JSONTestSuite/blob/master/test_parsing/y_string_null_escape.json

I have not yet personally tested any of the tests.

@lod
Copy link
Author

lod commented May 1, 2018

The two test files reported as incorrectly parsed are due to the presence of null characters.

Not supporting these seems to be a deliberate decision, presumably as doing otherwise would interfere with the standard string structure and be a pain to manage and use.

Explicitly documenting this variation from the standard would probably be worthwhile however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant