MojoX::JSON::XS - A JSON::XS backend replacement for Mojo::JSON
sub startup { # ... $self->plugin('MojoX::JSON::XS'); # ... }
Replaces Mojo::JSON methods encode, deocde and j with JSON::XS equivalient. This gives faster processing, and removes the unnecessary encode of '/' chars in strings.
It does not gracefully handle or skip blessed hashes
To install MojoX::JSON::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::JSON::XS
CPAN shell
perl -MCPAN -e shell install MojoX::JSON::XS
For more information on module installation, please visit the detailed CPAN module installation guide.