[Catalyst] Catalyst::View::JSON parameters

Ian Docherty catalyst at iandocherty.com
Mon Dec 3 21:42:14 GMT 2007


Tatsuhiko Miyagawa wrote:
> 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.
>   =

I did not fully understand this but I think you are suggesting using =

this to create a new JSON
encoder. This is not what I want to do, I just want to pass parameters =

to an existing encoder.
See my patch.
> 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.
>>     =

>
>   =


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071203/6916a=
f40/attachment.htm


More information about the Catalyst mailing list