Class::DBI::Plugin::TO_JSON - Help integrate Class::DBI with JSON::XS
package MY::DB; use base qw(Class::DBI); use Class::DBI::Plugin::TO_JSON;
Class::DBI::Plugin::TO_JSON helps integrate Class::DBI with JSON::XS, by implementing a TO_JSON() method which turns your data record into a plain/raw HASHREF with no inflated values.
Class::DBI::Plugin::TO_JSON
Class::DBI
JSON::XS
TO_JSON()
Turns the Class::DBI data record into a HASHREF suitable for use with JSON::XS
Graham TerMarsch (cpan@howlingfrog.com)
Copyright (C) 2008, Graham TerMarsch. All rights reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
JSON::XS, Class::DBI.
To install Class::DBI::Plugin::TO_JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::DBI::Plugin::TO_JSON
CPAN shell
perl -MCPAN -e shell install Class::DBI::Plugin::TO_JSON
For more information on module installation, please visit the detailed CPAN module installation guide.