Catalyst::Action::Serialize::Data::Serializer - Serialize with Data::Serializer
Contents
Contributors
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>
Copyright
Copyright (c) 2006-2013 the above named AUTHOR and CONTRIBUTORS
Description
This module implements a serializer for use with "Data::Dumper" and others. It was factored out of
Catalyst::Action::REST because it is unlikely to be widely used and tends to break tests, be insecure,
and is generally weird. Use at your own risk.
License
You may distribute this code under the same terms as Perl itself.
perl v5.34.0 2022-06-09 Catalyst::Acti...ata::Serializer(3pm)
Name
Catalyst::Action::Serialize::Data::Serializer - Serialize with Data::Serializer
Synopsis
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' ],
},
);
