On Sun, Aug 05, 2007 at 11:26:10AM +0100, Matt S Trout wrote:
> Always, -always- use View::JSON rather than doing the serialisation direct.

I tend to use Catalyst::Controller::REST and let it handle
serialization / deserialization for me.  Technically not MVC, but
since it's not code I have to look at, I don't care.  It's a bit
smarter than View::JSON in that it will return XML (etc.)
automagically if the client requests it.  Convenient.

It also provides un-Viewing (deserialization of the request body),
which doesn't fit nicely into the MVC pattern.  At least not in a way
I can see in my current caffeine-deprived state.

YMMV.

Regards,
Jonathan Rockway

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to