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.
To install Hoppy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hoppy
CPAN shell
perl -MCPAN -e shell install Hoppy
For more information on module installation, please visit the detailed CPAN module installation guide.