The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MarpaX::ESLIF::ECMA404 - JSON Data Interchange Format following ECMA-404 specification

VERSION

version 0.003

SYNOPSIS

    use MarpaX::ESLIF::ECMA404;

    my $ecma404 = MarpaX::ESLIF::ECMA404->new();
    my $input   = '["JSON",{},[]]';
    my $json    = $ecma404->decode($input);

DESCRIPTION

This module decodes strict JSON input using MarpaX::ESLIF.

Travis CI build status GitHub version License Perl5

SUBROUTINES/METHODS

new($class, %options)

Instantiate a new object. Takes as parameter an optional hash of options that can be:

logger

An optional logger object instance that must do methods compliant with Log::Any interface.

decode($self, $input)

Parses JSON that is in $input and returns a perl variable containing the corresponding structured representation, or undef in case of failure.

SEE ALSO

MarpaX::ESLIF, Log::Any

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jean-Damien Durand.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.