From: Ralf Ertzinger Date: Mon, 9 May 2011 20:32:55 +0000 (+0200) Subject: JSJSONArrayParser: Allow single quotes (wimp, you are trying to annoy me, right?) X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=1d7fcfba086f022ec85c2bbca513811c4c3eca27 JSJSONArrayParser: Allow single quotes (wimp, you are trying to annoy me, right?) --- diff --git a/videosite/JSJSONArrayParser.pm b/videosite/JSJSONArrayParser.pm index 5960ee1..82c67f3 100644 --- a/videosite/JSJSONArrayParser.pm +++ b/videosite/JSJSONArrayParser.pm @@ -25,7 +25,7 @@ sub parse { my $s = shift; my $j = JSON->new(); - return $j->loose->allow_barekey()->decode($s); + return $j->loose->allow_barekey()->allow_singlequote()->decode($s); } 1;