X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FJSJSONArrayParser.pm;h=82c67f3a174c6bcd5b48f1213e822a5414b2b2a9;hb=1dd46d87d78c3cac2732ba942f4412f3a168a837;hp=052e325dd4d42ec47da26425187d19e48f245fdf;hpb=a1237106ff15a200904b071ce7409c77904f4600;p=videosite.git diff --git a/videosite/JSJSONArrayParser.pm b/videosite/JSJSONArrayParser.pm index 052e325..82c67f3 100644 --- a/videosite/JSJSONArrayParser.pm +++ b/videosite/JSJSONArrayParser.pm @@ -8,7 +8,7 @@ package videosite::JSJSONArrayParser; use videosite::JSArrayParser; -use JSON; +use JSON -support_by_pp; @ISA = qw(videosite::JSArrayParser); use strict; @@ -23,8 +23,9 @@ sub new { sub parse { my $self = shift; my $s = shift; + my $j = JSON->new(); - return decode_json($s); + return $j->loose->allow_barekey()->allow_singlequote()->decode($s); } 1;