Eve

 view release on metacpan or  search on metacpan

lib/Eve/Json.pm  view on Meta::CPAN


B<Eve::Json> - a JSON converter adapter.

=head1 SYNOPSIS

    use Eve::Json;

    my $json = Eve::Json->new();

    my $json_string = $json->encode(reference => $reference);
    my $decoded_reference = $json->decode(string => $json_string);

=head1 DESCRIPTION

The B<Eve::Json> class adapts the functionality of the JSON::XS
module to provide JSON encoding and decoding features service.

=head1 METHODS

=head2 B<init()>

lib/Eve/Json.pm  view on Meta::CPAN

        Eve::Error::Value->throw(message => $e->message);
    } elsif ($e = Exception::Class::Base->caught()) {
        $e->rethrow();
    }

    return $result;
}

=head2 B<decode()>

Decodes a JSON string and returns a reference to its decoded contents.

=head3 Arguments

=over 4

=item C<string>

=back

=cut



( run in 0.270 second using v1.01-cache-2.11-cpan-0d8aa00de5b )