Subject: | debug rejects unicode strings |
my $json = get_utf8_json();
JSON::XS->new->utf8->decode($json);
utf8::decode($json);
JSON::XS->new->utf8->decode($json); # dies with "Wide character in subroutine entry"
so essentially one must call utf8::encode on any string that utf8::is_utf8 before decoding it as
JSON. It would be nice if JSON::XS could do it on it's own.
Also, the option to receive strings from encode with the unicode bit set would be nice.