Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier interaction with JSON #140

Open
wants to merge 1 commit into
base: maint/0.0828xx
Choose a base branch
from
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