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

Invalid escape sequences are interpreted not according to JSON spec #44

Open
m1h43l opened this issue Sep 17, 2021 · 0 comments
Open

Invalid escape sequences are interpreted not according to JSON spec #44

m1h43l opened this issue Sep 17, 2021 · 0 comments

Comments

@m1h43l
Copy link
Contributor

m1h43l commented Sep 17, 2021

JSON spec defines what characters need to be escaped. Everything else is not valid JSON.

\g will be interpreted as \\g even though \g is not a valid escape sequence. Either document this or let the parse fail.

Note: jx_error didn't return an error.

Unit test NOXDBUT1 test case TEST_INVALID_ESCAPE_SEQUENCE. Test file: unittests/data/parser/test19-invalid-escape-sequence.json

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