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

Control flow characters not in [0x0000, 0x001F] #14

Closed
marten-voorberg opened this issue Feb 25, 2023 · 0 comments
Closed

Control flow characters not in [0x0000, 0x001F] #14

marten-voorberg opened this issue Feb 25, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@marten-voorberg
Copy link
Owner

The following was also said in the offical repo issue. Someone should maybe look into this and add these tests if they are judged to be meaningful.

@marten-voorberg, maybe it would also be interesting to add unit tests for the following:
U+2028 and U+2029 handling
ECMAScript considers them line terminators but JSON does not. So ""\u2028\u2029"" should be considered valid JSON, and "[\u2028]" respectively "[\u2029]" should be considered invalid (all written as Java string literals here).
Other control characters handling
There are actually more control characters than defined in the JSON specification. However, since the JSON specification does not list them, they should be allowed unescaped in string values. For example the following should be considered valid JSON: ""\u007F\u009F""

@marten-voorberg marten-voorberg added enhancement New feature or request question Further information is requested and removed enhancement New feature or request labels Feb 25, 2023
@ajama248 ajama248 self-assigned this Feb 27, 2023
ajama248 added a commit that referenced this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants