You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to RFC 7159, character DEL 0x7F is perfectly valid unescaped.
JSON.sh should parse the string and print:
[0] "\x7F"
[] ["\x7F"]
Actual behaviour
JSON.sh cannot parse the string and prints an error:
EXPECTED value GOT "
The issue comes from the fact that JSON.sh uses cntrl to recognize control characters in regular expressions, and cntrl includes DEL 0x7F, while JSON control characters (the one that MUST be escaped) only go from U+0000 to U+001F and don't include U+007F.
The text was updated successfully, but these errors were encountered:
Step to reproduce
Expected behaviour
According to RFC 7159, character DEL 0x7F is perfectly valid unescaped.
JSON.sh should parse the string and print:
Actual behaviour
JSON.sh cannot parse the string and prints an error:
The issue comes from the fact that JSON.sh uses
cntrl
to recognize control characters in regular expressions, andcntrl
includes DEL 0x7F, while JSON control characters (the one that MUST be escaped) only go from U+0000 to U+001F and don't include U+007F.The text was updated successfully, but these errors were encountered: