X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite%2FJSJSONArrayParser.pm;h=7a3b7552a70586926c1480cccc55b83fbd1819c2;hp=82c67f3a174c6bcd5b48f1213e822a5414b2b2a9;hb=aedf7360ae2ac6e69d0b2009603c46eedb0af7a2;hpb=9891a6eaf82748eaa1837ede2680d76ccf1a7802 diff --git a/videosite/JSJSONArrayParser.pm b/videosite/JSJSONArrayParser.pm index 82c67f3..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->allow_barekey()->allow_singlequote()->decode($s); + ($content, undef) = $j->loose->allow_barekey()->allow_singlequote()->decode_prefix($s); + return $content; } 1;