lass::InflateColumn::Serializer::JSON;
$DBIx::Class::InflateColumn::Serializer::JSON::VERSION = '0.09';
=head1 NAME
DBIx::Class::InflateColumn::Serializer::JSON - JSON Inflator
=head1 SYNOPSIS
pa
mn' => {
'data_type' => 'VARCHAR',
'size' => 255,
'serializer_class' => 'JSON',
'serializer_options' => { allow_blessed => 1, convert_blessed => 1, pretty => 1 }, # o
ill be saved in the database in JSON format.
Any arguments included in C<serializer_options> will be passed to the L<JSON::MaybeXS> constructor,
to be used by the JSON backend for both serializing an
mn' => {
'data_type' => 'VARCHAR',
'size' => 255,
'serializer_class' => 'JSON'
}
);
Then in your code...
my $struct = { 'I' => { 'am' => 'a struct' };
$obj->data_c
j->data_column;
The data structures you assign to "data_column" will be saved in the database in JSON format.
=head1 DESCRIPTION
These modules help you store and access serialized data structures i
lts in an error
Right now there are three serializers:
- Storable
- JSON
- YAML
=head1 USAGE
1. Choose your serializer: JSON, YAML or Storable
2. Add 'InflateColumn::Serializer' into the load_c