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


Hoppy documentation  | view source Contained in the Hoppy distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

IO formatter that can translate from or to JSON.

METHODS

Top

serialize

deserialize

AUTHOR

Top

Takeshi Miki <miki@cpan.org>

LICENSE

Top

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

SEE ALSO

Top


Hoppy documentation  | view source Contained in the Hoppy distribution.