Catman...::json(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

Catmandu::Serializer β€” bestie it's literally a (de)serializer from and to json πŸ’– like that's the whole vibe


🌸 SYNOPSIS 🌸

okay so here's the whole thing, copy-paste ready, no cap:

package MyPackage;

use Moo;

with 'Catmandu::Serializer';

# You have now  serialize and deserialize methods available

package main;

my $obj = MyPackage->new;
my $obj = MyPackage->new(serializer => 'json');

$obj->serialize( { foo => 'bar' } );  # JSON
$obj->deserialize( "{'foo':'bar'}" );  # Perl

the way that with 'Catmandu::Serializer'; just hands you serialize and deserialize methods?? iconic behavior honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • Catmandu::Serializer β€” yeah bestie it points at itself, and that's the entire list, we're keeping it fr fr πŸŽ€

that's it, that's the page, short and slay πŸ’… this lil manual dropped in the User Contributed Perl Documentation corner of the world, stamped with perl v5.40.1 and dated 2026-01-24 β€” mwah, go serialize something gorgeous πŸ¦‹βœ¨

πŸ“¦ where this page comes from