git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a123710
)
JSJSONArrayParser: use more relaxed parsing
author
Ralf Ertzinger
<ralf@skytale.net>
Wed, 1 Dec 2010 20:41:27 +0000
(21:41 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Wed, 1 Dec 2010 20:41:27 +0000
(21:41 +0100)
videosite/JSJSONArrayParser.pm
patch
|
blob
|
history
diff --git
a/videosite/JSJSONArrayParser.pm
b/videosite/JSJSONArrayParser.pm
index
052e325
..
1fd44b0
100644
(file)
--- a/
videosite/JSJSONArrayParser.pm
+++ b/
videosite/JSJSONArrayParser.pm
@@
-8,7
+8,7
@@
package videosite::JSJSONArrayParser;
use videosite::JSArrayParser;
-use JSON;
+use JSON
-support_by_pp
;
@ISA = qw(videosite::JSArrayParser);
use strict;
@@
-23,8
+23,9
@@
sub new {
sub parse {
my $self = shift;
my $s = shift;
+ my $j = JSON->new();
- return
decode_json
($s);
+ return
$j->loose->decode
($s);
}
1;