Closed dwarring closed 6 years ago
It's looking like any use of \u
and \n
together in the same string is breaking newlines in 0.9.9
$ perl6 -e 'use JSON::Fast:ver<0.9.8>; dd from-json(‘{"test":"\n backslash u: \u2605 \n","test2":"\n no backslash u: ★ \n"}’)'
${:test("\n backslash u: ★ \n"), :test2("\n no backslash u: ★ \n")}
$ perl6 -e 'use JSON::Fast:ver<0.9.9>; dd from-json(‘{"test":"\n backslash u: \u2605 \n","test2":"\n no backslash u: ★ \n"}’)'
${:test("n backslash u: ★ n"), :test2("\n no backslash u: ★ \n")}
Possibly related to https://github.com/timo/json_fast/issues/36
i believe i fixed this in release 0.9.10; please try it on your real-life datasets
Now working. Thanks.
Note the decoding of
\n
asn
, but only if '\nand
\u000A` are used together in a string.New regression in JSON::Fast 0.9.9.