MarpaX::ESLIF::JSON - ESLIF's JSON interface
version 6.0.12
This is JSON's strict and relax encoder/decoder writen directly in MarpaX::ESLIF library.
There are two JSON modes:
Encoder and decoder are strict, as per ECMA-404 The JSON Data Interchange Standard.
This is strict grammar extended with:
[\x00-\x1F]
+
my $eslifJSON = MarpaX::ESLIF::JSON->new($eslif);
Just a convenient wrapper over MarpaX::ESLIF::JSON::Encoder and MarpaX::ESLIF::JSON::Decoder. Parameters are:
$eslif
MarpaX::ESLIF object instance. Required.
$strict
A true value means strict JSON, else relax JSON. Default is a true value.
my $string = $eslifJSON->encode($value);
my $value = $eslifJSON->decode($string);
Please refer to MarpaX::ESLIF::JSON::Decoder for the options.
+/-Infinity and +/-NaN are always mapped to Math::BigInt's binf(), binf('-'), bnan(), bnan('-'), respectively.
+/-Infinity
+/-NaN
binf()
binf('-')
bnan()
bnan('-')
They are always mapped to Math::BigFloat.
Jean-Damien Durand <jeandamiendurand@free.fr>
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.
To install MarpaX::ESLIF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::ESLIF
CPAN shell
perl -MCPAN -e shell install MarpaX::ESLIF
For more information on module installation, please visit the detailed CPAN module installation guide.