JSON::...raints(3pm)

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

πŸ’– JSON::RPC::Common::TypeConstraints β€” the type constraint library, bestie πŸ’–

perl(3pm) vibes, user-contributed Perl documentation, and yes she's a whole queen. This is JSON::RPC::Common::TypeConstraints, aka the little module that hands you type constraints like it's passing you a matcha latte. ✨


🌸 NAME 🌸

JSON::RPC::Common::TypeConstraints β€” it's a type constraint library, fr fr. That's the whole job description and she's slaying it. πŸ’…


πŸŽ€ VERSION πŸŽ€

version 0.11 β€” this is the era we're in, no cap. πŸ¦‹


✨ SYNOPSIS ✨

okay so this is literally all you gotta do:

use JSON::RPC::Common::TypeConstraints qw(JSONValue);

one line. that's it. import JSONValue and go be the main character. πŸ‘‘


🌈 DESCRIPTION 🌈

See MooseX::Types. that's the lore. that's where the explanation lives. iykyk. 🫢


πŸ’œ TYPES πŸ’œ

here come the icons themselves, the whole squad:

  • JSONDefined β€” it's giving "Value|ArrayRef|HashRef". defined things only, bestie.
  • JSONValue β€” it's giving "Undef|ArrayRef|HashRef" plus a Value in there: "Undef|Value|ArrayRef|HashRef". undef is invited to the party, we love inclusivity. πŸŽ‰
  • JSONContainer β€” it's giving "ArrayRef|HashRef". containers only, the structs and the lists, no loose scalars allowed at this function. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

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


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. free as in freedom, bestie, go wild. πŸ’–


ok that's the whole page, no notes, she ate and left zero crumbs. 🧚

mwah πŸ’‹ β€” this was perl v5.30.3, dated 2020-06-23. bye bestie, go write some type constraints πŸ¦‹βœ¨

πŸ“¦ where this page comes from