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


KiokuDB documentation  | view source Contained in the KiokuDB distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    my $c = KiokuDB::Backend::Serialize::JSPON::Collapser->new(
        id_field => "_id",
    );

    my $hashref = $c->collapse_jspon($entry);

DESCRIPTION

Top

This object is used by KiokuDB::Backend::Serialize::JSPON to convert KiokuDB::Entry objects to JSPON compliant structures.

ATTRIBUTES

Top

See KiokuDB::Backend::Serialize::JSPON::Converter for attributes shared by KiokuDB::Backend::Serialize::JSPON::Collapser and KiokuDB::Backend::Serialize::JSPON::Expander.

METHODS

Top

collapse_jspon $entry

Collapses the entry recursively, returning a JSPON compliant data structure suitable for serialization as a JSON string.


KiokuDB documentation  | view source Contained in the KiokuDB distribution.