NAME

JSON::Client - Example client for JSON::Server

VERSION

This documents version 0.00_10 of JSON::Client corresponding to git commit 93f9f16057e0366cb9161d9f1fb589d7e39b2836 released on Wed Feb 17 09:18:59 2021 +0900.

DESCRIPTION

This is an example client module for JSON::Server which sends and receives to a JSON::Server 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 should not be relied upon.

send

my $reply = $client->send ($data);

Send data. The return value is the response of the server, decoded from the JSON.

SEE ALSO

See the documentation for JSON::Server for details of dependencies.

AUTHOR

Ben Bullock, <bkb@cpan.org>

COPYRIGHT & LICENCE

This package and associated files are copyright (C) 2021 Ben Bullock.

You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.