Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upJSON.stringify is ambiguous with respect to upper and lowercase #1033
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
jmdyck
Nov 18, 2017
Collaborator
In QuoteJSONString, step 2.c.iii says:
Let hex be the string result of converting the numeric value of C
to a String of four lowercase hexadecimal digits.
So it isn't ambiguous with respect to upper/lowercase.
|
In
So it isn't ambiguous with respect to upper/lowercase. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
cyberphone
commented
Nov 18, 2017
|
That's great. Thanx! |
cyberphone
closed this
Nov 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cyberphone commentedNov 18, 2017
It is possible that I failed interpreting the rather massive document, but AFAICT JSON.stringify may generate "\u000f" or "\u000F" for the control character 0x000F. This collides with specifications like https://cyberphone.github.io/doc/security/jcs.html which rely on a fixed notation. Implementations appear to use the lowercase notation though.