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


NAME

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

Back to Top


DESCRIPTION

VIEW and PLUGIN to use JSON are enclosed.

Back to Top


EXAMPLE

VIEW

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

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

* Please see the Egg::View::JSON manpage 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 the JSON manpage module is acquired.

  my $json= $e->json;

* Please see the document of JSON in detail.

Back to Top


SEE ALSO

the JSON manpage, the Egg::Release manpage,

Back to Top


AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

Back to Top


COPYRIGHT

Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

Back to Top

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