Cataly...ializer(3pm)

πŸ“¦
version 1.08 Β· 2 versions
  • 1.08 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.08 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… Cataly...ializer β€” the manual, but make it make sense πŸ’…

okay so bestie, we're in Catalyst::Action::Serialize::Data::Serializer territory, and it's from the User Contributed Perl Documentation collection. buckle up, this one is a ride 🎒


✨ NAME ✨

Catalyst::Action::Serialize::Data::Serializer β€” serialize stuff with Data::Serializer, no cap πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

literally just, like, here's how you'd set it up in your controller:

package MyApp::Controller::Foo;

use Moose;
use namespace::autoclean;

BEGIN { extends 'Catalyst::Controller' }

__PACKAGE__->config(
    'default'   => 'text/x-yaml',
    'stash_key' => 'rest',
    'map'       => {
        'text/x-yaml'        => 'YAML',
        'application/json'   => 'JSON',
        'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
    },
);

she's giving controller config energy πŸ¦‹ and yes the nested array ref is real, [ 'Data::Serializer', 'Data::Dumper' ], don't @ me.


🌸 DESCRIPTION 🌸

so this module implements a serializer for use with "Data::Dumper" and friends. iconic, right? exceptβ€”

⚠️ real talk ⚠️ this got factored out of Catalyst::Action::REST because it's unlikely to be widely used, and it tends to break tests, be insecure, and is generally weird. Use at your own risk. like, that's not me being dramatic, that's the actual documentation saying that. πŸ’€

so yeah. she's a little chaotic. but she's our chaotic. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Adam Jacob <adam@stalecoffee.org> wrote this, with lots of help from mst and jrockway. 🫢

and also, direct quote vibes: Marchex, Inc. paid me while I developed this module. (<http://www.marchex.com>) β€” sponsored development era, we love to see it πŸ’Έ


🌈 CONTRIBUTORS 🌈

the whole group chat showed up for this one, bestie:

  • Tomas Doran (t0m) <bobtfish@bobtfish.net>
  • John Goulah
  • Christopher Laco
  • Daisuke Maki <daisuke@endeworks.jp>
  • Hans Dieter Pearcey
  • Brian Phillips <bphillips@cpan.org>
  • Dave Rolsky <autarch@urth.org>
  • Luke Saunders
  • Arthur Axel "fREW" Schmidt <frioux@gmail.com>
  • J. Shirley <jshirley@gmail.com>
  • Gavin Henry <ghenry@surevoip.co.uk>
  • Gerv http://www.gerv.net/
  • Colin Newell <colin@opusvl.com>
  • Wallace Reis <wreis@cpan.org>

fourteen legends. the way they all pulled up πŸ˜­πŸ’–


Copyright (c) 2006-2013 the above named AUTHOR and CONTRIBUTORS 🫑


🧚 LICENSE 🧚

You may distribute this code under the same terms as Perl itself. periodt. πŸ’…βœ¨


and that's the whole page bestie!! go forth and serialize responsibly (or at your own risk, apparently πŸ™ˆ)

signing off from perl v5.34.0, 2022-06-09, on the page formerly known as Cataly...ializer(3pm) πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from