line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package WWW::Kickstarter::JsonParser::JsonXs; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1025
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
6
|
no autovivification; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
487
|
use JSON::XS qw( ); |
|
1
|
|
|
|
|
3370
|
|
|
1
|
|
|
|
|
27
|
|
10
|
1
|
|
|
1
|
|
6
|
use WWW::Kickstarter::Error qw( my_croak ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
155
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
0
|
|
|
0
|
0
|
|
my ($class, %opts) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
0
|
|
|
|
|
if (my @unrecognized = keys(%opts)) { |
17
|
0
|
|
|
|
|
|
my_croak(400, "Unrecognized parameters @unrecognized"); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $self = bless({}, $class); |
21
|
0
|
|
|
|
|
|
$self->{json_parser} = JSON::XS->new->utf8; |
22
|
0
|
|
|
|
|
|
return $self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
0
|
|
sub decode { return $_[0]{json_parser}->decode($_[1]) } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |