[Dbix-class] RFC: DBIx::Class::JSON

Nilson Santos Figueiredo Junior acid06 at gmail.com
Thu Sep 14 19:56:56 CEST 2006


On 9/14/06, Rob Kinyon <rob.kinyon at gmail.com> wrote:
> That can be useful. But, that can make the JSON quite huge.

Yes.
But, only if you want it to be huge. ;-)

> You might want to look at how the Dojo does JSON serialization. What
> it does is it looks for a json() method on the object and, if one
> exists, it will serialize the return value from that. Otherwise, it
> will serialize the object itself. A plugin that does that would be
> very nice.

The module already does this in some cases (but the method name it
looks for is "as_json").

-Nilson Santos F. Jr.



More information about the Dbix-class mailing list