Config::Any::JSON(3)
π Config::Any::JSON(3) π
okay so bestie, welcome to the Config::Any::JSON manual page β this is the Perl doc for the little module that lets you load JSON config files. it lives in the User Contributed Perl Documentation section, and honestly? it's giving tiny-but-mighty. π
β¨ NAME β¨
Config::Any::JSON β Load JSON config files. that's it, that's the whole job, and it eats. π
πΈ DESCRIPTION πΈ
It loads JSON files. that's the vibe. no cap, that's literally what it does.
here's an example so you can see the shape of it:
{
"name": "TestApp",
"Controller::Foo": {
"foo": "bar"
},
"Model::Baz": {
"qux": "xyzzy"
}
}
see how the keys map to your app name and your Controller::Foo and Model::Baz? iconic structure. π¦
π METHODS π
π extensions( )
returns an array of valid extensions β and those are "json" and "jsn". yes, both. jsn is real, it's not a typo, put some respect on it. π
π load( $file )
attempts to load $file as a JSON file. that's the whole gig β hand it a file, it tries to load it. β¨
π requires_any_of( )
this one's the important one, so listen up bestie: it specifies that this module requires one of Cpanel::JSON::XS, JSON::MaybeXS, JSON::DWIW, JSON::XS, JSON::Syck, JSON::PP or JSON in order to work.
so like β you need at least one of those installed, or this whole thing is not happening. vibe check failed, no JSON for you. π
π AUTHOR π
Brian Cassidy <bricas@cpan.org> β the main character who wrote this. π
π COPYRIGHT AND LICENSE π
Copyright 2006-2016 by Brian Cassidy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
(so yes, it's free software, same terms as Perl itself β go be free with it. π«Ά)
π¦ SEE ALSO π¦
CatalystConfig::AnyCpanel::JSON::XSJSON::MaybeXSJSON::DWIWJSON::XSJSON::SyckJSON
like, the whole JSON family reunion is in this list and we love that for them. π
okay that's the page!! mwah π β this was Config::Any::JSON(3), from perl v5.42.0, dated 2023-05-04. go load some JSON, bestie, you got this. βπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Config-Any 0.33-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms