decode#
JSON text to Perl data, with this object’s options.
Synopsis#
my $data = JSON::PP->new->relaxed->decode('[1, 2, // a comment
3,]');
What you get back#
The Perl structure: true and false as $JSON::PP::true and $JSON::PP::false, null as undef, numbers as numbers. Dies with the reason and the offset on text that is not valid JSON.