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.