יובל קוג'מן (Yuval Kogman) > KiokuDB-0.51 > KiokuDB::Backend::Serialize::JSPON::Collapser

Download:
KiokuDB-0.51.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source   Latest Release: KiokuDB-0.57

NAME ^

KiokuDB::Backend::Serialize::JSPON::Collapser - Collapse entry data to JSPON compliant structures

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.

syntax highlighting: