Closed HJianBo closed 2 years ago
Raw \r
and \n
characters in JSON are invalid and allowing them would be very not good. And to avoid confusion, I mean the literal byte values 0x0D and 0x0A specifically are disallowed. Using the byte syntax of <<"\r\n">> is placing those disallowed values into the binary value that you're asking to Jiffy to decode. The correct approach is to make sure that the
` value is escaped.
E.g:
I think it would be better to support these special formats, such as adding a 'escape_in_string' option for
jiffy:decode/2
function