Takeshi Miki > Hoppy > Hoppy::Formatter::JSON

Download:
Hoppy-0.01005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Hoppy::Formatter::JSON - IO formatter that can translate from or to JSON.

SYNOPSIS ^

  use Hoppy::Formatter::JSON;

  my $formatter = Hoppy::Formatter::JSON->new;

  # from perl data to JSON
  my $data = { method => "login", params => {user_id => "hoge"} };
  my $json = $formatter->serialize($data);

  # from JSON to perl data 
  $data = $formatter->deserialize($json);

DESCRIPTION ^

IO formatter that can translate from or to JSON.

METHODS ^

serialize

deserialize

AUTHOR ^

Takeshi Miki <miki@cpan.org>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

syntax highlighting: