The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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;

 # a la XMLRPC::Lite
 JSONRPC::Transport::HTTP::CGI->dispatch_to('MyApp')->handle();

DESCRIPTION

This module implementes JSON-RPC (http://json-rpc.org/) server. Most ideas were borrowed from XMLRPC::Lite. Currently JSONRPC provides CGI server function.

SEE ALSO

JSONRPC::Transport::HTTP JSON XMLRPC::Lite http://json-rpc.org/

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.