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:
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
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
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:
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
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 :
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
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
...@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