line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Serialize::Serializer::JSON5; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:YANICK'; |
3
|
|
|
|
|
|
|
#ABSTRACT: JSON5 serializer for File::Serialize |
4
|
|
|
|
|
|
|
$File::Serialize::Serializer::JSON5::VERSION = '1.5.1'; |
5
|
5
|
|
|
5
|
|
12816
|
use strict; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
180
|
|
6
|
5
|
|
|
5
|
|
28
|
use warnings; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
188
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
28
|
use Module::Runtime qw/ use_module /; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
40
|
|
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
2689
|
use Moo; |
|
5
|
|
|
|
|
37399
|
|
|
5
|
|
|
|
|
44
|
|
11
|
|
|
|
|
|
|
extends 'File::Serialize::Serializer::JSON::MaybeXS'; |
12
|
|
|
|
|
|
|
|
13
|
43
|
|
|
43
|
1
|
127
|
sub extensions { qw/ json5 / }; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub required_modules { |
16
|
87
|
|
|
87
|
0
|
324
|
qw/ JSON5 JSON::MaybeXS / |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub deserialize { |
20
|
2
|
|
|
2
|
0
|
399
|
my( $self, $data, $options ) = @_; |
21
|
2
|
|
|
|
|
12
|
use_module('JSON5'); |
22
|
2
|
|
|
|
|
21044
|
return JSON5::decode_json5($data,$options); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |