The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.