NAME
Dancer2::Serializer::JSONMaybeXS - Serializer for handling JSON data
SYNOPSIS
use Dancer2;
set serializer => 'JSONMaybeXS';
DESCRIPTION
This is a serializer engine for the Dancer2 web framework that allows you to turn Perl data structures into JSON output and vice-versa. It uses JSON::MaybeXS, a faster and cleaner interface to XS and pure-perl JSON modules than JSON.pm.
METHODS
deserialize
my $data = $serializer->deserialize($string);
Deserializes a JSON string into a Perl data structure.
serialize
my $string = $serializer->serialize($data);
Serializes a Perl data structure into a JSON string.
BUGS
Report any issues on the public bugtracker.
AUTHOR
Dan Book <dbook@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2016 by Dan Book.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)