kotlinx.serialization
kotlinx.serialization copied to clipboard
Newline '\n' vs '\\n'
Describe the bug In json, if we get:
{
"someKey": "some long text \nAnotherline"
}
Everything works as intended but if that '\n' was '\n' it just outputs 'some long text \nAnotherline'
Per RFC 8259, newline should be '\n'
@jmiecz could you please elaborate a bit more on the problem you're facing? It seems like there's a typo in "... if that '\n' was '\n' it just outputs ...", so it's not clear when behavior does not match your expectations.
Closing because no additional information is provided