line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Async::Graphite::JSONCodec; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.1_1'; |
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
1605
|
use v5.14; |
|
3
|
|
|
|
|
10
|
|
6
|
3
|
|
|
3
|
|
16
|
use strictures 2; |
|
3
|
|
|
|
|
23
|
|
|
3
|
|
|
|
|
113
|
|
7
|
3
|
|
|
3
|
|
626
|
use Moo::Role; |
|
3
|
|
|
|
|
20
|
|
|
3
|
|
|
|
|
25
|
|
8
|
3
|
|
|
3
|
|
1181
|
use Carp; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
181
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
1516
|
use JSON (); |
|
3
|
|
|
|
|
23228
|
|
|
3
|
|
|
|
|
79
|
|
11
|
3
|
|
|
3
|
|
25
|
use namespace::clean; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
30
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=item _json (read-only) |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
A L codec object. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=cut |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has _json => is => lazy => init_arg => undef, builder => sub { |
20
|
4
|
|
|
4
|
|
146
|
JSON->new->utf8->allow_blessed(1) |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |