Ambassador-API-V2

 view release on metacpan or  search on metacpan

lib/Ambassador/API/V2/Role/HasJSON.pm  view on Meta::CPAN


use Moo::Role;
use JSON::MaybeXS;

our $VERSION = '0.001';

# Configure and cache the JSON object
has json => (
    is      => 'ro',
    default => sub {
        return JSON->new->utf8(1);
    }
);

1;

__END__

=head1 NAME

Ambassador::API::V2::Role::HasJSON - Adds a json attribute with a JSON::MaybeXS



( run in 0.965 second using v1.01-cache-2.11-cpan-49f99fa48dc )