Group
Extension

Matches 2

DBIx-Class-Helpers ( W/WE/WESM/DBIx-Class-Helpers-2.037000.tar.gz, WESM, 2024; MetaCPAN )
DBIx-Class-Helpers/lib/DBIx/Class/Helper/Row/NumifyGet.pm ( view source; MetaCPAN )
  => 'integer',
       is_nullable       => 0,
       is_numeric        => 1,
    },
 );

 sub TO_JSON {
    return {
       foo => $self->foo,  # this becomes 0 instead of "0" due to context
    }
 }
DBIx-Class-Helpers ( W/WE/WESM/DBIx-Class-Helpers-2.037000.tar.gz, WESM, 2024; MetaCPAN )
DBIx-Class-Helpers/lib/DBIx/Class/Helper/Row/ToJSON.pm ( view source; MetaCPAN )
package DBIx::Class::Helper::Row::ToJSON;
$DBIx::Class::Helper::Row::ToJSON::VERSION = '2.037000';
# ABSTRACT: Remove the boilerplate from your TO_JSON functions

use strict;
use warnings;

use parent
   $self->result_source->columns
      ]);
   }
   return $self->_serializable_columns;
}

sub TO_JSON {
   my $self = shift;

   my $columns_info = $self->columns_info($self->serializable_columns);

e_data_types;
}

1;

__END__

=pod

=head1 NAME

DBIx::Class::Helper::Row::ToJSON - Remove the boilerplate from your TO_JSON functions

=head1 SYNOPSIS

 package MyApp::Schema::Result::KittenRobot;

 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.