DBIx::Class::InflateColumn::Serializer::JSYNC - Basic JSON Object Serialization Support for DBIx::Class.
version 0.002001
This is basically the only serialization backend I could find that wasn't "Dumper()", and actually seemed to work with arbitrary bless()
bless()
package Foo::Result::Thing; __PACKAGE__->load_components('InflateColumn::Serializer', 'Core'); __PACKAGE__->table('thing'); .... __PACKAGE__->add_column( data => { data_type => 'text', serializer_class => 'JSYNC', } );
my $freezer = ::JSYNC->get_freezer( $column, $info, $args ); my $string = $freezer->( $object ); # $data isa string
my $unfreezer = ::JSYNC->get_unfreezer( $column, $info, $args ); my $object = $unfreezer->( $string );
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DBIx::Class::InflateColumn::Serializer::JSYNC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::InflateColumn::Serializer::JSYNC
CPAN shell
perl -MCPAN -e shell install DBIx::Class::InflateColumn::Serializer::JSYNC
For more information on module installation, please visit the detailed CPAN module installation guide.