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