::JSON;
use Moose::Role;
use namespace::autoclean;
use JSON::Any;
use Try::Tiny;
our $VERSION = '0.01';
with 'Catalyst::TraitFor::Request::DecodedParams';
sub _build_params_decoder { return JSON::
m_json($value) }
catch { $decoder->from_json( $decoder->to_json($value) ) };
}
return $decoded_param;
}
1;
__END__
=head1 NAME
Catalyst::TraitFor::Request::DecodedParams::JSON
or;
__PACKAGE__->apply_request_class_roles(qw/
Catalyst::TraitFor::Request::DecodedParams::JSON
/);
=head1 AUTHOR & LICENSE
See L<Catalyst::TraitFor::Request::DecodedParams>.
=cut