>. The default serialization method is L<JSON>,
though one can specify any serialization format you want. L<YAML> and L<Storable> are
viable alternatives.
JSON was chosen as the default serialization
on ephemeral - Store it compactly
return to_json({%$self}, { pretty => 0 });
}
# Default Deserialize method
sub _deserialize {
my ($self, $json) = @_;
my $settings = setting('session_opt
efined $settings->{deserializer}) {
return $settings->{deserializer}->($json);
}
return from_json($json);
}
=head1 SEE ALSO
L<Dancer>, L<Dancer::Session>, L<Plack::Session::Store: