NAME
Kelp::Module::JSON - Simple JSON module for a Kelp application
SYNOPSIS
package MyApp;
use Kelp::Base 'Kelp';
sub some_route {
my $self = shift;
return $self->json->encode( { yes => 1 } );
}
REGISTERED METHODS
This module registers only one method into the application: json
.
The module will try to use backends in this order: Cpanel::JSON::XS, JSON::XS, JSON::PP.