logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

KiokuDB::Backend::Serialize::JSPON::Collapser - Collapse entry data 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.

Author

       Yuval Kogman <nothingmuch@woobling.org>

Description

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

Methods

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

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);

Version

       version 0.57

See Also