Invalid JSON - Unescaped code points return "Valid JSON"
blzaugg opened this issue · comments
When I input the JSON below at jsonlint.com, it comes out as "Valid JSON".
{
"new line": "\n"
}
From: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf
9 String
A string is a sequence of Unicode code points wrapped with quotation marks (U+0022). All code points may
be placed within the quotation marks except for the code points that must be escaped: quotation mark
(U+0022), reverse solidus (U+005C), and the control characters U+0000 to U+001F. There are two-character
escape sequence representations of some characters.
" represents the quotation mark character (U+0022).
\ represents the reverse solidus character (U+005C).
/ represents the solidus character (U+002F).
\b represents the backspace character (U+0008).
\f represents the form feed character (U+000C).
\n represents the line feed character (U+000A).
\r represents the carriage return character (U+000D).
\t represents the character tabulation character (U+0009).