Subject: | Pod: wrong result in decode_prefix() sample |
The code sample in https://metacpan.org/pod/JSON::XS#perl_scalar-characters-json-decode_prefix-json_text returns ([1],3) instead of ([],3):
$ perl -MData::Dumper -MJSON::XS -E 'say Dumper(JSON::XS->new->decode_prefix ("[1] the tail"))'
$VAR1 = [
1
];
$VAR2 = 3;