Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/DBIx/Class/Row.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,23 @@ sub throw_exception {
Returns the primary key(s) for a row. Can't be called as a class method.
Actually implemented in L<DBIx::Class::PK>

=head2 WHY THE HELL NOT ?

JSON MUCH FUN # This is more of a question than a true PR
<< Allow fast JSON encoding with >>
JSON::XS->new->convert_blessed->encode

=cut

sub TO_JSON {
my $c = shift;
return $c->{_column_data};
}

=back

some data

=head1 FURTHER QUESTIONS?

Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
Expand Down