KiokuDB::Backend::Serialize::JSPON::Collapser - Collapse entry data to JSPON compliant structures
my $c = KiokuDB::Backend::Serialize::JSPON::Collapser->new( id_field => "_id", ); my $hashref = $c->collapse_jspon($entry);
This object is used by KiokuDB::Backend::Serialize::JSPON to convert KiokuDB::Entry objects to JSPON compliant structures.
See KiokuDB::Backend::Serialize::JSPON::Converter for attributes shared by KiokuDB::Backend::Serialize::JSPON::Collapser and KiokuDB::Backend::Serialize::JSPON::Expander.
Collapses the entry recursively, returning a JSPON compliant data structure suitable for serialization as a JSON string.
To install KiokuDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KiokuDB
CPAN shell
perl -MCPAN -e shell install KiokuDB
For more information on module installation, please visit the detailed CPAN module installation guide.