12 May 2021 03:05:41 UTC
- Distribution: JSON-Server
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (104 / 1 / 0)
- KwaliteeBus factor: 1
- 71.16% Coverage
- License: perl_5
- Perl: v5.6.1
- Activity24 month
- Download (9.47KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
JSON::Client - Example client for JSON::Server
This documents version 0.02 of JSON::Client corresponding to git commit 3002d95df18b014ba750d9c37f1ea44027d29fe5 released on Wed May 12 12:04:15 2021 +0900.
This is an example client module for JSON::Server which sends and receives to a JSON::Server server.
my $client = JSON::Client->new ( port => '5555', # This is the port of the server we are using );
Make a new JSON client object. Possible options are
The port of the JSON::Server we are communicating with.
Print debugging messages. The format and frequency of these messages should not be relied upon.
my $reply = $client->send ($data);
Send data. The return value is the response of the server, decoded from the JSON.
See the documentation for JSON::Server for details of dependencies.
Ben Bullock, <firstname.lastname@example.org>
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.