JSON::...ion_2_0(3pm)
β¨ NAME β¨
okay bestie, gather round, because this one is JSON::RPC::Common::Procedure::Call::Version_2_0 β it's the JSON-RPC 2.0 Procedure Call class, and it's lowkey carrying the whole 2.0 spec on its back π
It lives in the User Contributed Perl Documentation, if you were wondering where to find it π
πΈ VERSION πΈ
This is version 0.11, no cap.
π¦ SYNOPSIS π¦
the way you just use it and it does the thing:
use JSON::RPC::Common::Procedure::Call;
my $req = JSON::RPC::Common::Procedure::Call->inflate({
jsonrpc => "2.0",
id => "oink",
params => { foo => "bar" },
});
that's it, that's the whole vibe β¨
π DESCRIPTION π
so this class implements JSON-RPC Procedure Call objects according to the 2.0 specification proposal, which lives right here:
http://groups.google.com/group/json-rpc/web/json-rpc-1-2-proposal
Two things that make 2.0 hit different, fr fr:
- JSON RPC 2.0 reinstate notifications π
- and it lets you use the same format for parameters π
and here's the part you cannot miss, bestie: requests count as notifications only when the"id"field is missing β not when it'snull. missing β null. the vibe check is strict on this one. π
π«Ά AUTHOR π«Ά
Yuval Kogman <nothingmuch@woobling.org> β icon, legend, the moment.
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Yuval Kogman and others. π«Ά
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie π this lil doc dropped as perl v5.30.3 on 2020-06-23, under the JSON::...ion_2_0(3pm) banner β go forth and slay your procedure calls π
π¦ where this page comes from
- debian bookworm: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjson-rpc-common-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms