SweetPea::Application::Json - JSON support for SweetPea-Application.
... from inside SweetPea::Application or a Controller; $s->json->encode($hashref); my $hashref = $s->json->decode($incoming);
The new method instantiates a new SweetPea::Application::Json object which use JSON as a base for encoding and decoding input to and from JSON ojbects. $s->plug( 'json', sub { return SweetPea::Application::Json->new($s); });
Al Newkirk, <al.newkirk at awnstudio.com>
<al.newkirk at awnstudio.com>
To install SweetPea::Application, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SweetPea::Application
CPAN shell
perl -MCPAN -e shell install SweetPea::Application
For more information on module installation, please visit the detailed CPAN module installation guide.