ackage Yeb::Plugin::JSON;
BEGIN {
$Yeb::Plugin::JSON::AUTHORITY = 'cpan:GETTY';
}
# ABSTRACT: Yeb Plugin for JSON response
$Yeb::Plugin::JSON::VERSION = '0.101';
use Moo;
use JSON::MaybeXS;
has app
json_attrs_untouched = qw(
ascii latin1 binary pretty indent space_before space_after
relaxed canonical filter_json_object filter_json_single_key_object
shrink max_depth max_size
);
for (@json
y @json_attrs_enabled = qw(
utf8 allow_nonref convert_blessed allow_blessed
);
for (@json_attrs_enabled) {
has $_ => (
is => 'ro',
default => sub { 1 },
);
}
my @json_attrs = ( @json_a