SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-JSON-Any rpm build for : OpenSuSE. For other distributions click perl-JSON-Any.

Name : perl-JSON-Any
Version : 1.400.0 Vendor : obs://build_opensuse_org/home:smithfarm
Release : lp155.3.1 Date : 2024-09-05 15:44:34
Group : Unspecified Source RPM : perl-JSON-Any-1.400.0-lp155.3.1.src.rpm
Size : 0.06 MB
Packager : https://www_suse_com/
Summary : (DEPRECATED) Wrapper Class for the various JSON classes
Description :
This module tries to provide a coherent API to bring together the various
JSON modules currently on CPAN. This module will allow you to code to any
JSON API and have it work regardless of which JSON module is actually
installed.

use JSON::Any;

my $j = JSON::Any->new;

$json = $j->objToJson({foo=>\'bar\', baz=>\'quux\'});
$obj = $j->jsonToObj($json);

or

$json = $j->encode({foo=>\'bar\', baz=>\'quux\'});
$obj = $j->decode($json);

or

$json = $j->Dump({foo=>\'bar\', baz=>\'quux\'});
$obj = $j->Load($json);

or

$json = $j->to_json({foo=>\'bar\', baz=>\'quux\'});
$obj = $j->from_json($json);

or without creating an object:

$json = JSON::Any->objToJson({foo=>\'bar\', baz=>\'quux\'});
$obj = JSON::Any->jsonToObj($json);

On load, JSON::Any will find a valid JSON module in your AATTINC by looking
for them in this order:

Cpanel::JSON::XS
JSON::XS
JSON::PP
JSON
JSON::DWIW

And loading the first one it finds.

You may change the order by specifying it on the \'use JSON::Any\' line:

use JSON::Any qw(DWIW XS CPANEL JSON PP);

Specifying an order that is missing modules will prevent those module from
being used:

use JSON::Any qw(CPANEL PP); # same as JSON::MaybeXS

This will check in that order, and will never attempt to load JSON::XS,
JSON.pm/JSON, or JSON::DWIW. This can also be set via the
\'$ENV{JSON_ANY_ORDER}\' environment variable.

JSON::Syck has been deprecated by its author, but in the attempt to still
stay relevant as a \"Compatibility Layer\" JSON::Any still supports it. This
support however has been made optional starting with JSON::Any 1.19. In
deference to a bug request starting with JSON.pm 1.20, JSON::Syck and other
deprecated modules will still be installed, but only as a last resort and
will now include a warning.

use JSON::Any qw(Syck XS JSON);

or

$ENV{JSON_ANY_ORDER} = \'Syck XS JSON\';

At install time, JSON::Any will attempt to install JSON::PP as a reasonable
fallback if you do not appear have *any* backends installed on your system.

WARNING: If you call JSON::Any with an empty list

use JSON::Any ();

It will skip the JSON package detection routines and will die loudly that
it couldn\'t find a package.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/smithfarm/15.5/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-JSON-Any-1.400.0-lp155.3.1.noarch.rpm
     

Provides :
perl(JSON::Any)
perl-JSON-Any

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/JSON
/usr/lib/perl5/vendor_perl/5.26.1/JSON/Any.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-JSON-Any
/usr/share/doc/packages/perl-JSON-Any/CONTRIBUTING
/usr/share/doc/packages/perl-JSON-Any/Changes
/usr/share/doc/packages/perl-JSON-Any/README
/usr/share/licenses/perl-JSON-Any
/usr/share/licenses/perl-JSON-Any/LICENCE
/usr/share/man/man3/JSON::Any.3pm.gz

 
ICM