KiokuD...llapser(3pm)
β¨ NAME β¨
KiokuDB::Backend::Serialize::JSPON::Collapser β bestie, this is the little module that collapses entry data down into JSPON compliant structures. That's the whole vibe. π«Ά
It lives in the User Contributed Perl Documentation section, section 3pm, and yes we're calling it KiokuD...llapser(3pm) because that's how the terminal truncates it and honestly? iconic. π
πΈ VERSION πΈ
version 0.57
π¦ SYNOPSIS π¦
okay so here's the whole thing in action:
my $c = KiokuDB::Backend::Serialize::JSPON::Collapser->new(
id_field => "_id",
);
my $hashref = $c->collapse_jspon($entry);
that's it, that's the whole flex β¨
π DESCRIPTION π
So, this object is used by KiokuDB::Backend::Serialize::JSPON to convert KiokuDB::Entry objects into JSPON compliant structures. That's its entire job, its entire purpose, its main character arc. π
π ATTRIBUTES π
Bestie, the attributes here are shared β like, hand-me-downs but make it glamorous. Go look at KiokuDB::Backend::Serialize::JSPON::Converter for the attributes that KiokuDB::Backend::Serialize::JSPON::Collapser and KiokuDB::Backend::Serialize::JSPON::Expander both rock. π«Ά
π₯ METHODS π₯
collapse_jspon $entryβ Collapses the entry recursively (yes, all the way down, no half measures π ) and hands you back a JSPON compliant data structure that's ready to be serialized as a JSON string. It's giving "flattened, but cute". β¨
β 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.
and that's a wrap, my love π this little page was brought to you by perl v5.34.0 and dated 2022-05-23, filed under KiokuD...llapser(3pm). no cap, go collapse some entries. πππ¦
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms