Just say no to broken JSON
7 points
11 hours ago
| 1 comment
| lemire.me
| HN
chrisjj
11 hours ago
[-]
> {"key": "value\nda"}

> My convention is that \n is the one-byte ASCII control character linefeed. This JSON is not valid.

How is this not valid?

reply
rurban
11 hours ago
[-]
Daniel seems to be pretty confused on this one. All examples produce the correct error response.
reply
orangecat
11 hours ago
[-]
That confused me too, apparently it needs to be "\\n".
reply