Just say no to broken JSON

8 pointsposted 16 hours ago
by ingve

4 Comments

chrisjj

15 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?

rurban

15 hours ago

Daniel seems to be pretty confused on this one. All examples produce the correct error response.

orangecat

15 hours ago

That confused me too, apparently it needs to be "\\n".