Group
Extension

Matches 1

Kelp-Module-JSON-XS ( B/BR/BRTASTIC/Kelp-Module-JSON-XS-0.503.tar.gz, BRTASTIC, 2024; MetaCPAN )
Kelp-Module-JSON-XS/lib/Kelp/Module/JSON/XS.pm ( view source; MetaCPAN )
odule::JSON::XS;
use Kelp::Base 'Kelp::Module::Encoder';
use JSON::XS;

our $VERSION = '0.503';

sub encoder_name { 'json' }

sub build_encoder {
    my ($self, $args) = @_;
    my $json = JSON::XS->n
s %{$args}) {
        $json->$key($args->{$key});
    }

    return $json;
}

sub build {
    my ( $self, %args ) = @_;
    $self->SUPER::build(%args);

    $self->register(json => $self->get_encoder)
=head1 NAME

Kelp::Module::JSON::XS - DEPRECATED JSON:XS module for Kelp applications

=head1 DEPRECATED

B<*** This module is now deprecated. ***>

Kelp is now using L<JSON::MaybeXS>, which will auto

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.