JSON::RPC::Lite - Simple Syntax JSON RPC 2.0 Server Implementation
# app.psgi use JSON::RPC::Lite; method 'echo' => sub { return $_[0]; }; method 'empty' => sub {''}; as_psgi_app; # run $ plackup app.psgi
JSON::RPC::Lite is sinatra-ish style JSON RPC 2.0 Server Implementation.
method 'method_name1' => sub { ... }; method 'method_name2' => sub { ... };
register method
as_psgi_app;
run as PSGI app.
Copyright (C) nqounet.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
nqounet <mail@nqou.net>
To install JSON::RPC::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::RPC::Lite
CPAN shell
perl -MCPAN -e shell install JSON::RPC::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.