JSON::RPC::Common::Procedure::Call::Version_1_1(3pm)

JSON::RPC::Common::Procedure::Call::Version_1_13pm

Json-rpc 1.1 procedure call

Usage

        use JSON::RPC::Common::Procedure::Call;
        my $req = JSON::RPC::Common::Procedure::Call->inflate({
                version => "1.1",
                id      => "oink",
                params  => { foo => "bar" },
        });

Version

version 0.11

Overview

This class implements JSON-RPC 1.1 Procedure Calls according to the 1.1 working draft: <http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html>.

JSON RPC 1.1 requests are never notifications, and accept either hash references or array references as parameters.

Note that the alternative JSON RPC 1.1 proposition is also be supported: <http://groups.google.com/group/json-rpc/web/json-rpc-1-1-alt>. "kwparams" is accepted as an alias to "params", but "params" will also accept hash references. However, to simplify things, "params" and "kwparams" are mutually exclusive, since Perl doesn't have strong support for named params.

The alternative spec does not offer notifications (it is a TODO item), so currently "is_notification" always returns false.

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

Author

Yuval Kogman <[email protected]>

From libjson-rpc-common-perl 0.11-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.