decode_json#

UTF-8 encoded JSON text to Perl data.

Synopsis#

use JSON::PP;
my $data = decode_json '{"list":[1,true,null]}';

What you get back#

The Perl structure: JSON::PP->new->utf8->decode($bytes). true and false are $JSON::PP::true and $JSON::PP::false. Exported by default.