[Catalyst] Using JSON

J. Shirley jshirley at gmail.com
Wed Apr 15 02:12:28 GMT 2009


On Wed, Apr 15, 2009 at 10:27 AM, Oliver Charles <
oliver.g.charles at googlemail.com> wrote:

> 2009/4/14 J. Shirley <jshirley at gmail.com>:
> > The other solutions above that don't have you using View::JSON are wron=
g.
> >
> > Use Catalyst::View::JSON.
> >
> > Do not use other things
>
> Presumably this is only for serving JSON responses, right? Not for
> actually doing any JSON parsing on requests (like if JSON is POST from
> the client to the server - I dunno if that happens, because I don't
> touch JS).
>
> --
>    Oliver Charles / aCiD2
>
>
>
Yes, just for serving the responses.

If you're processing JSON, I'd take a look at using
Catalyst::Controller::REST and the JSON serializer and deserializer.
Otherwise, I would take a look at using JSON (which uses JSON::XS if
available).

-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090415/e4ed8=
2f8/attachment.htm


More information about the Catalyst mailing list