JSON::...ion_1_1(3pm)
πΈ NAME πΈ
JSON::RPC::Common::Procedure::Call::Version_1_1 β bestie, it's the JSON-RPC 1.1 Procedure Call class. That's the whole vibe. π
β¨ VERSION β¨
version 0.11 π
π¦ SYNOPSIS π¦
okay so here's the whole thing in action:
use JSON::RPC::Common::Procedure::Call;
my $req = JSON::RPC::Common::Procedure::Call->inflate({
version => "1.1",
id => "oink",
params => { foo => "bar" },
});
no cap, that's it. inflate and you're off π«Ά
π DESCRIPTION π
so this class implements JSON-RPC 1.1 Procedure Calls according to the 1.1 working draft, which lives right here: http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html. iconic. π
JSON RPC 1.1 requests are <b>never</b> notifications β like, never ever β and they accept either hash references or array references as parameters. both. your choice. slay. π
ngl, there's a plot twist: the alternative JSON RPC 1.1 proposition is <b>also</b> supported, over at http://groups.google.com/group/json-rpc/web/json-rpc-1-1-alt β¨
the way that works is: kwparams is accepted as an alias to params, but params will also accept hash references. but β and this is the important part, bestie, don't skip it β params and kwparams are mutually exclusive, because Perl doesn't have strong support for named params. so pick one. literally one. π
and listen, the alternative spec doesn't offer notifications (it's a TODO item, they're getting to it, it's giving very much "we'll do it later"), so currently is_notification <b>always returns false</b>. always. no exceptions. π«Ά
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β shoutout to the main character π
π 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. periodt. π
okay that's the whole page, ty for coming to my ted talk β this was perl v5.30.3, dated 2020-06-23, and it ate. no crumbs. bye bestie π¦β¨
π¦ 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