NAME
Data::Tools::Serialization provides set of high-level serialization
and deserialization wrapper functions.
SYNOPSIS
use Data::Tools::Serialization qw( :all ); # import all functions
use Data::Tools::Serialization; # the same as :all :)
use Data::Tools::Serialization qw( :none ); # do not import anything
# --------------------------------------------------------------------------
my $perl_hoh = xml2perl( $xml_text );
my $xml_text = perl2xml( $perl_hoh );
my $perl_hoh = json2perl( $json_text );
my $json_text = perl2json( $perl_hoh );
# --------------------------------------------------------------------------
FUNCTIONS
xml2perl( $xml_text )
Returns perl hash of hashes reference representing the XML data text.
perl2xml( $perl_hoh )
Returns xml text representing the in-memory perl hash of hashes structure.
json2perl( $xml_text )
Returns perl hash of hashes reference representing the JSON data text.
perl2json( $perl_hoh )
Returns JSON text representing the in-memory perl hash of hashes structure.
REQUIRED MODULES
Data::Tools::Serialization uses:
* XML::Bare
* JSON
all are loaded on demand and are not initial requirement nor if just other parts of the Data::Tools are used.
GITHUB REPOSITORY
git@github.com:cade-vs/perl-data-tools.git
git clone git://github.com/cade-vs/perl-data-tools.git
AUTHOR
Vladi Belperchinov-Shabanski "Cade"
<cade@noxrun.com> <cade@bis.bg> <cade@cpan.org>
http://cade.noxrun.com/