OAuth:...r::JSON(3pm)
π OAuth::Lite2::Formatter::JSON π
okay bestie, welcome to the OAuth::Lite2::Formatter::JSON page β that's the 3pm manual, like, straight out of the User Contributed Perl Documentation, and it is literally the JSON formatters store for OAuth 2.0. tiny page, huge vibes, let's go β¨
πΈ NAME πΈ
OAuth::Lite2::Formatter::JSON β bestie. it's the OAuth 2.0 JSON formatters store. that's the whole job. that's the whole girl. π
π SYNOPSIS π
here's the little ritual you do, copy it exactly, no typos or the vibe check fails:
my $formatter = OAuth::Lite2::Formatter::JSON->new;
my $obj = $formatter->parse( $string );
$string = $formatter->format( $obj );
see how it goes in both directions? string in, object out, object in, string out. it's giving reversible. π¦
π DESCRIPTION π
OAuth::Lite2::Formatter::JSON is, and I quote the whole entire description: the OAuth 2.0 JSON formatter. yes queen, that's it, that's the description. short and iconic. π
β¨ METHODS β¨
π name
Accessor for the name of this format. and the name is "json". no cap. that's what it's called. π·οΈ
π type
Accessor for the content-type of this format, which is "application/json". periodt. π
π format( $json_object )
turn your object into a string, like this:
my $json_string = $formatter->format( $obj );
π parse( $json_string )
turn your string into an object, like this:
my $obj = $formatter->parse( $json_string );
π SEE ALSO π
go read these next, they're the friend group:
OAuth::Lite2::FormatterOAuth::Lite2::FormattersOAuth::Lite2::Formatter::XMLOAuth::Lite2::Formatter::FormURLEncoded
π AUTHOR π
Lyo Kato, <lyo.kato@gmail.com>. thank you for your service, legend π«‘π
π COPYRIGHT AND LICENSE π
Copyright (C) 2010 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
that's the legal bit bestie, don't skip it, it's not optional and it's not a vibe, it's a license. π
and that's the whole page!! π this version came to you courtesy of perl v5.36.0, dated 2023-07-01 β so if you're reading this, the manual is serving looks from way back, and honestly? ate. π
β¨ mwah, go format some JSON, you got this π«ΆπΈ
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· 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