NAME
JSON::Client - example client module for JSON::Server
DESCRIPTION
This is an example client module for "JSON::Server".
SYNOPSIS
my $client = JSON::Client->new (
port => '5555', # This is the port of the server we are using
);
METHODS
new
Make a new JSON client object. Possible options are
- port
-
The port of the JSON::Server we are communicating with.
- verbose
-
Print debugging messages. The format and frequency of these messages is completely variable and cannot be relied upon.
send
Send data. The return value is the response of the server, decoded from the JSON.