X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FJSJSONArrayParser.pm;h=7a3b7552a70586926c1480cccc55b83fbd1819c2;hb=refs%2Fheads%2Fmaster;hp=1fd44b030322a18e2c80a34d5129e462e6353331;hpb=cb568fd5ab4d239e1541bbf973317ebd28f3aede;p=videosite.git diff --git a/videosite/JSJSONArrayParser.pm b/videosite/JSJSONArrayParser.pm index 1fd44b0..7a3b755 100644 --- a/videosite/JSJSONArrayParser.pm +++ b/videosite/JSJSONArrayParser.pm @@ -24,8 +24,10 @@ sub parse { my $self = shift; my $s = shift; my $j = JSON->new(); + my $content; - return $j->loose->decode($s); + ($content, undef) = $j->loose->allow_barekey()->allow_singlequote()->decode_prefix($s); + return $content; } 1;