From: Ralf Ertzinger Date: Sun, 8 May 2011 11:29:17 +0000 (+0200) Subject: JSJSONArrayParser: Allow bareword keys X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=5a1c4fca58cd489ab03057f8a552fa32a961176a JSJSONArrayParser: Allow bareword keys --- diff --git a/videosite/JSJSONArrayParser.pm b/videosite/JSJSONArrayParser.pm index 1fd44b0..5960ee1 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->decode($s); + return $j->loose->allow_barekey()->decode($s); } 1;