JSJSONArrayParser: Allow single quotes (wimp, you are trying to annoy me, right?)
authorRalf Ertzinger <ralf@skytale.net>
Mon, 9 May 2011 20:32:55 +0000 (22:32 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Mon, 9 May 2011 20:32:55 +0000 (22:32 +0200)
videosite/JSJSONArrayParser.pm

index 5960ee1..82c67f3 100644 (file)
@@ -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;