| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package MarpaX::ESLIF::JSON; | ||
| 5 | 1 | ▶ | use MarpaX::ESLIF::JSON::Encoder; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use MarpaX::ESLIF::JSON::Decoder; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | # ABSTRACT: ESLIF's JSON interface | ||
| 9 | |||
| 10 | 1 | our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY | |
| 11 | |||
| 12 | 1 | our $VERSION = '6.0.35.1'; # VERSION | |
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | my $class = shift; | |
| 18 | |||
| 19 | 0 | return bless { encoder => MarpaX::ESLIF::JSON::Encoder->new(@_), decoder => MarpaX::ESLIF::JSON::Decoder->new(@_) }, $class | |
| 20 | } | ||
| 21 | |||
| 22 | |||
| 23 | 0 | ▶ | sub encode { |
|
Subroutine
encode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | 0 | my ($self, $value) = @_; | |
| 25 | |||
| 26 | 0 | return $self->{encoder}->encode($value) | |
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | 0 | ▶ | sub decode { |
|
Subroutine
decode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | 0 | my ($self, $string, %options) = @_; | |
| 32 | |||
| 33 | 0 | return $self->{decoder}->decode($string, %options) | |
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | 1 | 1; | |
| 38 | |||
| 39 | __END__ | ||