MojoX::Renderer::JSON::XS - Fast JSON::XS handler for Mojolicious::Renderer
sub setup { my $app = shift; # Via plugin $app->plugin('JSON::XS'); # Or manually $app->renderer->add_handler( json => MojoX::Renderer::JSON::XS->build, ); }
MojoX::Renderer::JSON::XS provides fast JSON::XS renderer to Mojolicious applications.
Returns a handler for Mojolicious::Renderer that calls JSON::XS::encode_json.
Mojolicious::Renderer
JSON::XS::encode_json
JSON::XS Mojolicious Mojolicious::Renderer
Copyright (C) yowcow.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
yowcow <yowcow@cpan.org>
To install MojoX::Renderer::JSON::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::Renderer::JSON::XS
CPAN shell
perl -MCPAN -e shell install MojoX::Renderer::JSON::XS
For more information on module installation, please visit the detailed CPAN module installation guide.