chrisjj 17 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 17 hours ago Daniel seems to be pretty confused on this one. All examples produce the correct error response. orangecat 17 hours ago That confused me too, apparently it needs to be "\\n". chrisjj 3 hours ago /He/ may need it to be //n, but JSON does not. It is valid. https://jsonlint.com/ confirms.
rurban 17 hours ago Daniel seems to be pretty confused on this one. All examples produce the correct error response.
orangecat 17 hours ago That confused me too, apparently it needs to be "\\n". chrisjj 3 hours ago /He/ may need it to be //n, but JSON does not. It is valid. https://jsonlint.com/ confirms.
chrisjj 3 hours ago /He/ may need it to be //n, but JSON does not. It is valid. https://jsonlint.com/ confirms.
> {"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?
Daniel seems to be pretty confused on this one. All examples produce the correct error response.
That confused me too, apparently it needs to be "\\n".
/He/ may need it to be //n, but JSON does not. It is valid. https://jsonlint.com/ confirms.