NAME

Mojo::JSON::XS - JSON::XS backend for Mojo::JSON::Any

SYNOPSIS

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]}');

DESCRIPTION

Mojo::JSON::XS is a wrapper over JSON::XS with a compatible Mojo::JSON interface.

ATTRIBUTES

See Mojo::JSON.

METHODS

See Mojo::JSON.

ISSUES

When error occurs error message for obvious reasons is not identical to Mojo::JSON.