KiokuD...llapser(3pm)

πŸ“¦
version 0.57 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ 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>

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