Mojo::JSON::XS - JSON::XS backend for Mojo::JSON::Any
use Mojo::JSON::XS; my $json = Mojo::JSON::XS->new; my $string = $json->encode({foo => [1, 2], bar => 'hello!'}); my $hash = $json->decode('{"foo": [3, -2, 1]}');
Mojo::JSON::XS is a wrapper over JSON::XS with a compatible Mojo::JSON interface.
See Mojo::JSON.
When error occurs error message for obvious reasons is not identical to Mojo::JSON.
To install Mojo::JSON::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::JSON::Any
CPAN shell
perl -MCPAN -e shell install Mojo::JSON::Any
For more information on module installation, please visit the detailed CPAN module installation guide.