package Data::Serializer::JSON; BEGIN { @Data::Serializer::JSON::ISA = qw(Data::Serializer) } use strict; use JSON; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); require Exporter; require AutoLoader; @ISA = qw(Exporter AutoLoader); @EXPORT = qw( ); $VERSION = '0.01'; 1; __END__ sub serialize { return JSON->new->objToJson($_[1]); } sub deserialize { return JSON->new->jsonToObj($_[1]); } =head1 NAME Data::Serializer::JSON - Creates bridge between Data::Serializer and JSON =head1 SYNOPSIS use Data::Serializer::JSON; =head1 DESCRIPTION Module is used internally to Data::Serializer =over 4 =item B - Wrapper to normalize serializer method name =item B - Wrapper to normalize deserializer method name =back =head1 AUTHOR Naoya Ito =head1 COPYRIGHT This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 SEE ALSO perl(1), Data::Serializer(3), JSON(3). =cut