git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'per-window-debug' into weechat
[videosite.git]
/
videosite
/
JSJSONArrayParser.pm
diff --git
a/videosite/JSJSONArrayParser.pm
b/videosite/JSJSONArrayParser.pm
index
052e325
..
82c67f3
100644
(file)
--- a/
videosite/JSJSONArrayParser.pm
+++ b/
videosite/JSJSONArrayParser.pm
@@
-8,7
+8,7
@@
package videosite::JSJSONArrayParser;
use videosite::JSArrayParser;
package videosite::JSJSONArrayParser;
use videosite::JSArrayParser;
-use JSON;
+use JSON
-support_by_pp
;
@ISA = qw(videosite::JSArrayParser);
use strict;
@ISA = qw(videosite::JSArrayParser);
use strict;
@@
-23,8
+23,9
@@
sub new {
sub parse {
my $self = shift;
my $s = shift;
sub parse {
my $self = shift;
my $s = shift;
+ my $j = JSON->new();
- return
decode_json
($s);
+ return
$j->loose->allow_barekey()->allow_singlequote()->decode
($s);
}
1;
}
1;