JSON::...::Text(3pm)

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

πŸ’– NAME πŸ’–

JSON::RPC::Common::Marshal::Text β€” it's the JSON text marshalling bestie for JSON::RPC::Common. That's the whole gig, and she does it flawlessly πŸ’…

Oh and the page you're reading rn is JSON::...::Text(3pm), just so we're all on the same page 🫢


✨ VERSION ✨

This is version 0.11, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

use JSON::RPC::Common::Marshal::Text;

my $m = JSON::RPC::Common::Marshal::Text->new;

my $return_obj = $m->json_to_return($json_text);

look at her go. iconic behavior fr fr 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this object takes your JSON::RPC::Common::Procedure::Call and JSON::RPC::Common::Procedure::Return objects and serializes them into JSON text, using the JSON module to do the heavy lifting. she's the translator in the group chat, the one who can speak both Object and Raw JSON. no cap. πŸ”₯


🌈 ATTRIBUTES 🌈

  • json β€” the JSON object you wanna use for the job. don't got one? no worries bestie, a default one gets created for you if you don't specify πŸ’–
  • call_class, return_class β€” these are the classes that inflate gets called on. default vibes are JSON::RPC::Common::Procedure::Call and JSON::RPC::Common::Procedure::Return respectively. slay.

πŸ’… METHODS πŸ’…

  • call_to_json
  • json_to_call
  • return_to_json
  • json_to_return

These four are the main characters of the conversion game πŸ‘‘ they take objects and turn them into json, and take json and turn it back into objects. both directions, no notes, we love a bidirectional queen ✨


πŸ’œ AUTHOR πŸ’œ

Yuval Kogman <nothingmuch@woobling.org> β€” the legend, the icon, 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. go off, do whatever, it's free πŸ’–


and that's the whole page bestie, mwah πŸ’‹ this lil doc came from perl v5.30.3 on 2020-06-23, so if the vibes feel vintage, that's why πŸŽ€ stay marshalling, queen πŸ¦‹βœ¨

πŸ“¦ where this page comes from