Kelp::Module::JSON - Simple JSON module for a Kelp application
package MyApp; use Kelp::Base 'Kelp'; sub some_route { my $self = shift; return $self->json->encode( { yes => 1 } ); }
This module registers only one method into the application: json.
json
To install Kelp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kelp
CPAN shell
perl -MCPAN -e shell install Kelp
For more information on module installation, please visit the detailed CPAN module installation guide.