NAME
MarpaX::ESLIF::ECMA404 - JSON Data Interchange Format following ECMA-404 specification
VERSION
version 0.002
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.
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
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.