JSON::...cedure(3pm)

πŸ’… NAME πŸ’…

JSON::RPC::Procedure β€” bestie, it's literally a JSON::RPC Procedure. That's it. That's the whole vibe. ✨

Oh and hiiiii, welcome to the User Contributed Perl Documentation section β€” that's where you're at rn, no cap. 🫢


🌸 SYNOPSIS 🌸

okay so here's the whole thing, copy it exactly, don't @ me:

use JSON::RPC::Procedure;

my $procedure = JSON::RPC::Procedure->new(
    id => ...,
    method => ...
    params => ...
    jsonrpc => ...
    has_id => ... (a flag that signals that a procedure appears to be a notification when not set)
);

like. look at her. she's gorgeous. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a container for JSON RPC procedure information. That's the tea. β˜• A little box that holds your procedure info, that's the entire personality, and honestly? iconic.

quick heads up, bestie: that has_id flag is the main character here β€” it's a flag that signals that a procedure appears to be a notification when not set. So like. no has_id? she's a notification. periodt. πŸ’€

πŸŽ€ OPTIONS πŸŽ€

OFC we're gonna talk about what you can pass to new() β€” every single one, in order, no skips:

  • id β€” the id, bestie. that's the parameter, it's just id => ... πŸ’–
  • method β€” the method. method => ..., exactly like it says ✨
  • params β€” the params. params => ... πŸŽ€
  • jsonrpc β€” the jsonrpc field. jsonrpc => ... πŸ¦‹
  • has_id β€” has_id => ... β€” and this one comes with the receipt: (a flag that signals that a procedure appears to be a notification when not set) πŸ”₯ not me being obsessed with a boolean flag 😭

🌈 SEE ALSO 🌈

ngl there are no SEE ALSO refs in this one β€” she's a short queen and we respect that. 🧚


k bye bestie!! this page came to you courtesy of perl v5.42.0, dated 2015-08-27, living under that JSON::...cedure(3pm) energy forever. slay, stay hydrated, go read a manual page πŸ’œπŸŒΈπŸ«Ά

πŸ“¦ where this page comes from