| Hoppy documentation | view source | Contained in the Hoppy distribution. |
Hoppy::Formatter::JSON - IO formatter that can translate from or to JSON.
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);
IO formatter that can translate from or to JSON.
Takeshi Miki <miki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Hoppy documentation | view source | Contained in the Hoppy distribution. |