Re: [Catalyst] Using JSON

2009-04-15 Thread Emmanuel Quevillon
Octavian Râşniţă wrote: Hi, What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) Thanks. Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Using JSON

2009-04-14 Thread Oliver Charles
2009/4/14 Octavian Râşniţă orasn...@gmail.com: Hi, What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) At $work we use Catalyst::View::JSON [1] - which does the job fine for us. For parsing JSON objects, I

Re: [Catalyst] Using JSON

2009-04-14 Thread Neo [GC]
Octavian Râşniţă schrieb: Hi, What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) use JSON; ;) my $json = new JSON; my $object = $json-decode ($string); my $string = $json-encode ($object); (maybe

Re: [Catalyst] Using JSON

2009-04-14 Thread Chisel Wright
On Tue, Apr 14, 2009 at 06:05:53PM +0300, Octavian R???ni wrote: Hi, What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) I tend to use JSON::Any with JSON::XS -- Chisel Wright e:

Re: [Catalyst] Using JSON

2009-04-14 Thread W. Tyler Gee
I think the recommended module would be Catalyst::View::JSON and if you want to change anything you just plug in a different driver via the config rather than worrying about altering the View itself. ~Tyler 2009/4/14 Octavian Râşniţă orasn...@gmail.com Hi, What's the recommended module for

Re: [Catalyst] Using JSON

2009-04-14 Thread Devin Austin
Don't forget to check out Catalyst::Controller::REST, especially if you're just going to be using a plugin. On Tue, Apr 14, 2009 at 1:14 PM, James R. Leu j...@mindspring.com wrote: I know is it not recommended, but I use C::P::JSONRPC (with Dojo). In my Root controller I do: sub jsonapi :

Re: [Catalyst] Using JSON

2009-04-14 Thread Tomas Doran
On 14 Apr 2009, at 16:05, Octavian Râşniţă wrote: What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) I'm using Catalyst::Controller::REST to go to/from JSON. HTH t0m

Re: [Catalyst] Using JSON

2009-04-14 Thread J. Shirley
On Wed, Apr 15, 2009 at 10:27 AM, Oliver Charles oliver.g.char...@googlemail.com wrote: 2009/4/14 J. Shirley jshir...@gmail.com: The other solutions above that don't have you using View::JSON are wrong. Use Catalyst::View::JSON. Do not use other things Presumably this is only for

Re: [Catalyst] Using JSON

2009-04-14 Thread Octavian Rasnita
...@bobtfish.net To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, April 15, 2009 12:12 AM Subject: Re: [Catalyst] Using JSON On 14 Apr 2009, at 16:05, Octavian Râşniţă wrote: What's the recommended module for getting a JSON request and creating a JSON response