#!/usr/bin/perl # your code goes here use JSON::XS; my $xx = '{\"adi\": \"true\"}'; my $encoder = JSON::XS->new(); my $resultJsonHash = $encoder->decode($xx);
Standard input is empty
Standard output is empty
'"' expected, at character offset 1 (before "\\"adi\\": \\"true\\...") at prog.pl line 6.