table of contents
KiokuDB::Backend::Serialize::JSPON::Collapser(3pm) | User Contributed Perl Documentation | KiokuDB::Backend::Serialize::JSPON::Collapser(3pm) |
NAME¶
KiokuDB::Backend::Serialize::JSPON::Collapser - Collapse entry data to JSPON compliant structures
VERSION¶
version 0.57
SYNOPSIS¶
my $c = KiokuDB::Backend::Serialize::JSPON::Collapser->new( id_field => "_id", ); my $hashref = $c->collapse_jspon($entry);
DESCRIPTION¶
This object is used by KiokuDB::Backend::Serialize::JSPON to convert KiokuDB::Entry objects to JSPON compliant structures.
ATTRIBUTES¶
See KiokuDB::Backend::Serialize::JSPON::Converter for attributes shared by KiokuDB::Backend::Serialize::JSPON::Collapser and KiokuDB::Backend::Serialize::JSPON::Expander.
METHODS¶
- collapse_jspon $entry
- Collapses the entry recursively, returning a JSPON compliant data structure suitable for serialization as a JSON string.
AUTHOR¶
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT AND LICENSE¶
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-05-23 | perl v5.34.0 |