JSON::...ion_2_0(3pm)

πŸ“¦
version 0.11 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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's null. missing β‰  null. the vibe check is strict on this one. πŸ’€

🫢 AUTHOR 🫢

Yuval Kogman <nothingmuch@woobling.org> β€” icon, legend, the moment.


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