DBIx::DataModel::Schema::ResultAs::Json - result in JSON format
$source->select(..., $result_as => 'json'); # or $source->select(..., $result_as => [json => %json_options]);
Converts all rows to JSON format, using JSON::MaybeXS. Default options to the JSON converter are
pretty => 1, allow_blessed => 1, convert_blessed => 1,
but they can be overridden by passing a non-empty hash as argument to the constructor.
To install DBIx::DataModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::DataModel
CPAN shell
perl -MCPAN -e shell install DBIx::DataModel
For more information on module installation, please visit the detailed CPAN module installation guide.