Just say no to broken JSON

8 ingve 3 7/4/2025, 6:26:52 PM lemire.me ↗

Comments (3)

chrisjj · 12h 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 · 12h ago
Daniel seems to be pretty confused on this one. All examples produce the correct error response.
orangecat · 12h ago
That confused me too, apparently it needs to be "\\n".