RPC::JSON::Shell - Interactive JSON-RPC Shell


    perl -MRPC::JSON -e "RPC::JSON::shell"

    Not connected> connect
    GeocodeService > geocode "1600 Pennsylvania Ave Washington DC"
    $VAR1 = [
            'administrativearea' => 'DC',
            'country' => 'US',
            'longitude' => '-77.037691',
            'subadministrativearea' => 'District of Columbia',
            'locality' => 'Washington',
            'latitude' => '38.898758',
            'thoroughfare' => '1600 Pennsylvania Ave NW',
            'postalcode' => 20004,
            'address' => '1600 Pennsylvania Ave NW, Washington, DC 20004, USA'


This module is an interactive client to a JSON-RPC service. It is currently in its infancy and is likely to be very unstable. There are many bugs in this package.


Initiate a shell session


Display the help text.

connect smdUrl

Connect to the specified SMD URL


If connected, will disconnect from the existing service. This doesn't necessarily mean that it will disconnect the socket (it will if the socket is still open), because JSON-RPC does not require a dedicated connection.


Aliased to disconnected


List available methods

method Caller

By entering <method> [parameters] the shell will query the Service and display results


Copyright 2006 J. Shirley <>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 50:

'=item' outside of any '=over'

Around line 226:

You forgot a '=back' before '=head1'