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