Catmandu::Serializer::json(3pm) | User Contributed Perl Documentation | Catmandu::Serializer::json(3pm) |
Catmandu::Serializer - A (de)serializer from and to json
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
Catmandu::Serializer
2023-03-03 | perl v5.36.0 |