jsonlint
jsonlint copied to clipboard
Problems recognizing and/or reformatting escapes
I've noticed a couple of issues in the reformatted output when there's escapes in the input:
-
disappearing slashes. This represents a two-character string, not a newline escape:
- in:
"\\n"
- expected out:
"\\n"
- actual out:
"\n"
This also happens for b, r, f, and t.
- in:
-
unexpected slashes.
- in:
"\u0066"
- expected out:
"f"
(or"\u0066"
) - actual out:
"\\u0066"
- in: