-
Notifications
You must be signed in to change notification settings - Fork 53
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
Non-standard whitespace handling #46
Milestone
Comments
This was referenced Sep 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The scanner in node-jsonc-parser allows multiple non-standard whitespace chars to be accepted as a whitespace:
node-jsonc-parser/src/impl/scanner.ts
Line 392 in ff813e9
However, JSON specification allows only a handful of whitespace chars:
Difference in whitespace handling leads to interop problems with other JSON parsers, where input successfully parsed by node-jsonc-parser would fail to parse in Node or Python.
The text was updated successfully, but these errors were encountered: