JSON::...r::Link(3pm)
π NAME π
JSON::Hyper::Link β it's the teeny tiny object that represents a hyperlink found in a JSON document. Yes bestie, that's the whole job. And heads up, this page lives in the User Contributed Perl Documentation part of the manual, so you know it's community-made with love π«Ά
β¨ DESCRIPTION β¨
Okay so. This is a tiny little object that represents a hyperlink found in a JSON document. That's it. That's the vibe.
And you totally have my permission to treat it as a hashref if you want. Encapsulation, ensmapulation! π (that's a direct quote, I would never)
π Constructor π
Generally speaking? You do not want to construct these yourself. They get constructed by JSON::Hyper's find_links method, and honestly I cannot think of any conceivable reason why you'd want to construct one by hand. Not one. Zero. Nada. π
Nevertheless... (iconic transition, no notes)
new(\%attrs)β the constructor takes a hashref of attributes.new($uri)β or, alternatively, a single URI as a string.
π¦ Attributes π¦
These attributes are hash keys for the constructor, and they also exist as methods you can call on the object to retrieve the value. Double duty, main character energy π
hrefβ the URL linked to. The destination. The place we're going π«relβ the relationship between the URL and the document that linked to it.targetSchemaβ a JSON schema (peepJSON::Schema) that the URL linked to supposedly conforms to. There's also a method calledtarget_schemaif you're allergic to camelCase π but heads up:targetSchemais the only attribute recognised by the constructor. So like, one of them is the real one and one of them is the vibe.methodβ the HTTP method recommended for interacting with the URL. If it's undef, then'GET'is usually a good bet.enctypeβ if you're POSTing data to this URL, this is the recommended Content-Type header.schemaproperties
π BUGS π
Found a bug? Please report any bugs to <http://rt.cpan.org/>. Do it fr fr, they wanna know πΈ
π SEE ALSO π
Related modules: JSON::Hyper. That's the family, that's the crew π
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. Legend behaviour.
π COPYRIGHT AND LICENCE π
Copyright 2010-2012 Toby Inkster.
This module is tri-licensed. It is available under the X11 (a.k.a. MIT) licence; you can also redistribute it and/or modify it under the same terms as Perl itself. Options? We got options β¨
a.k.a. "The MIT Licence"
Okay bestie, here's the legal bit. I am not touching a single character of this, it stays exactly as written π
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
That's the whole page babes π go forth and find_links responsibly.
This was perl v5.34.0, dated 2022-05-28, and it's the JSON::...r::Link(3pm) page β mwah, slay, periodt π¦πΈπ
π¦ where this page comes from
- debian bookworm: libjson-hyper-perl 0.011-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjson-hyper-perl 0.011-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjson-hyper-perl 0.011-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libjson-hyper-perl 0.011-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms