ation::JSON;
use 5.006;
use strict;
use warnings;
use JSON;
=head1 NAME
WWW::Session::Serialization::JSON - Serialization engine for WWW::Session with JSON backend
=head1 DESCRIPTION
JSON serial
hods : serialize() and expand()
use WWW::Session::Serialization::JSON;
my $serializer = WWW::Session::Serialization::JSON->new();
...
$string = $serializer->serialize($structure
THODS
=head2 new
Creates a new WWW::Session::Serialization::JSON object
Usage :
my $serializer = WWW::Session::Serialization::JSON->new();
No arguments required.
=cut
sub new {
my $
7.0.0.1:11211']} );
#Set up the serialization engine (defaults to JSON)
WWW::Session->serialization_engine('JSON');
#Set up the default expiration time (in seconds or -1 for neve
vers => ['127.0.0.1'] }
],
serialization => 'JSON',
expires => 3600,
fields => {
the default serializer
__PACKAGE__->serialization_engine('JSON');
=head1 SESSION & OBJECTS
The default serialization engine is JSON, but JSON can't serialize objects by default,
you will have to wri