decode_prefix#
Decode the JSON text at the start of a string.
Synopsis#
my ($data, $chars) = JSON::PP->new->decode_prefix('[1,2] trailing text');
# ([1, 2], 5)
What you get back#
The Perl structure and the number of characters its text took; what follows is not looked at.