Serializer::JSONPP;
use strict;
use warnings;
use 5.008_005;
our $VERSION = '0.02';
use Dancer::Config 'setting';
use Dancer::SharedData;
use base 'Dancer::Serializer::Abstract';
use JSON::PP;
sub
sub _build_jsonpp {
my $self = shift;
my $json = JSON::PP->new;
my $options = {};
my $config = setting('engines') || {};
$config = $config->{JSONPP} || $config->{JSON} || {};
# straight pass through of config options to JSON
map { $options->{$_} = $config->{$_} } keys %$config;
# pull in config from serializer init as well (and possibly override settings from t