[Catalyst] Catalyst::View::JSON parameters

Tatsuhiko Miyagawa miyagawa at gmail.com
Mon Dec 3 21:05:07 GMT 2007


Catalyst::Views are pure perl classes and objects and in the case of
View::JSON, you can set your own JSON encoder to $obj->json_dumper(sub
{ encode_json() }) without updating the code.

On 12/3/07, Kevin Old <kevin at kevinold.com> wrote:
>
> I'd recommend overriding the C::V::JSON in your application (create a
> Catalyst directory beside the 'lib' directory in your project, make a
> View directory, then copy JSON.pm into that directory and customize it
> to your needs.

-- 
Tatsuhiko Miyagawa



More information about the Catalyst mailing list