Catman...::json(3pm)
β¨ 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
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms