| 1 | package Net::Async::Graphite::JSONCodec; | ||
| 2 | |||
| 3 | 1 | our $VERSION = '0.1_1'; | |
| 4 | |||
| 5 | 3 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | ▶ | use JSON (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | =item _json (read-only) | ||
| 14 | |||
| 15 | A L<JSON> codec object. | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | 4 | ▶ | has _json => is => lazy => init_arg => undef, builder => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=1.2
Subroutine
_build__json: not called CC=1 SCAR=1.2
| |||
| 20 | 0 | JSON->new->utf8->allow_blessed(1) | |
| 21 | 1 | }; | |
| 22 | |||
| 23 | 1 | 1; | |