[Catalyst] Using JSON
Neo [GC]
neo at gothic-chat.de
Tue Apr 14 15:16:06 GMT 2009
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 there is some more elegant, but this does all the magic for the
start)
Regards,
Neo [GC]
More information about the Catalyst
mailing list