Egg::Release::JSON - JSON module kit for Egg.


Egg-Release-JSON documentation Contained in the Egg-Release-JSON distribution.

Index


Code Index:

NAME

Top

Egg::Release::JSON - JSON module kit for Egg.

DESCRIPTION

Top

VIEW and PLUGIN to use JSON are enclosed.

EXAMPLE

Top

VIEW

Defolt VIEW is set and the output preparation of JSON is done.

  $e->default_view('JSON')->obj({
    hogehoge => 'hoooo',
    uhauha   => 'beeee',
    });

* Please see Egg::View::JSON in detail.

PLUGIN

The method for the mutual conversion of JSON is added.

  my $json_data = {
    aaaaa => 'bbbbb',
    ccccc => 'ddddd',
    };
  my $json_js   = $e->obj2json($json_data);
  my $json_hash = $e->json2obj($json_js);

The object of JSON module is acquired.

  my $json= $e->json;

* Please see the document of JSON in detail.

SEE ALSO

Top

JSON, Egg::Release,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT

Top


Egg-Release-JSON documentation Contained in the Egg-Release-JSON distribution.

package Egg::Release::JSON;
#
# Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
#
# $Id: JSON.pm 210 2007-11-03 14:38:29Z lushe $
#
use strict;
use warnings;

our $VERSION = '0.02';

1;