NAME
JSONRPC - (halfway) server implementation of JSON-RPC protocol
SYNOPSIS
#--------------------------
# In your application class
package MyApp;
sub own_method { # called by clients
my ($server, @params) = @_; # $server is JSONRPC object.
...
# return a scalar value or a hashref or an arryaref.
}
#--------------------------
# In your main cgi script.
use JSONRPC::Transport::HTTP;
use MyApp;
# Currently provides only CGI server
use JSONRPC::Transport::HTTP;
# a la XMLRPC::Lite
JSONRPC::Transport::HTTP::CGI->disptch_to('MyApp')->handle();
DESCRIPTION
This module implementes JSON-RPC ("http://json-rpc.org/") server. Most ideas were borrowed from XMLRPC::Lite. Currently JSONRPC
provides only CGI server function.
SEE ALSO
"http://json-rpc.org/" JSON XMLRPC::Lite
AUTHOR
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
COPYRIGHT AND LICENSE
Copyright 2005 by Makamaka Hannyaharamitu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.