timo / json_fast

a naive imperative json parser in perl6, to evaluate performance against JSON::Tiny
Artistic License 2.0
27 stars 20 forks source link

Parse \b and \f escape sequences correctly #68

Closed akiym closed 4 years ago

akiym commented 4 years ago

\b and \f were left escaped, now they are correctly unescaped by from-json().

Before:

> from-json('"\\b\\f\\n\\r\\t"').raku
"\\b\\f\n\r\t"

After:

> from-json('"\\b\\f\\n\\r\\t"').raku
"\b\x[C]\n\r\t"
antoniogamiz commented 4 years ago

@timo could you merge this?

timo commented 4 years ago

merged and released to cpan, thank you very much, @akiym