Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-JSON-Any-1.400.0-2.3 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-JSON-Any Distribution: openSUSE Tumbleweed
Version: 1.400.0 Vendor: openSUSE
Release: 2.3 Build date: Fri Mar 8 23:34:35 2024
Group: Unspecified Build host: reproducible
Size: 61625 Source RPM: perl-JSON-Any-1.400.0-2.3.src.rpm
Packager: http://bugs.opensuse.org
Url: https://metacpan.org/release/JSON-Any
Summary: (DEPRECATED) Wrapper Class for the various JSON classes
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 @INC 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.

Provides

Requires

License

Artistic-1.0 OR GPL-1.0-or-later

Changelog

* Fri Mar 08 2024 Tina Müller <[email protected]>
  - Fix disabling of __perllib_provides
* Sun Sep 10 2023 Tina Müller <[email protected]>
  - updated to 1.40
    see /usr/share/doc/packages/perl-JSON-Any/Changes
    1.40      2023-09-09 21:59:01Z
    - fix issues on perl 5.39.1 with 'import' subs
    - added support for JSON v3, v4, JSON::XS v4
* Sun Jun 14 2015 [email protected]
  - updated to 1.39
    see /usr/share/doc/packages/perl-JSON-Any/Changes
    1.39      2015-06-10 04:37:49Z
    - mark this distribution as deprecated in metadata
    - drop dependency on namespace::clean
* Mon Apr 13 2015 [email protected]
  - updated to 1.38
    see /usr/share/doc/packages/perl-JSON-Any/Changes
* Tue Nov 26 2013 [email protected]
  - updated to 1.32
    Include dep Test::Requires in dist.ini
    bump minimum version requirement for JSON.pm
    fix the tests to properly exclude JSON::XS
    A bug came up where JSON::XS and JSON.pm had incompatible revisions
    but installed just fine. This was a problem because JSON.pm will
    silently load JSON::XS in the background and caused explosions.
    We now try to exclude JSON::XS except in the case we're actually
    testing it directly.
    Also we've removed some of the tests for JSON::Syck as it's been
    deprecated. We also add in tests for Cpanel::JSON::XS which got
    missed when it was added as a choice.
    JSON::XS 3.x is incompatible with JSON.pm < 2.90 in the exact way
    that JSON::Any uses things in the test suite.
* Fri Jul 26 2013 [email protected]
  - updated to 1.30
    * Add support for Cpanel::JSON::XS and JSON::PP. Fixes RT#85424 & RT#67967. (perigrin)
    * Fix documentation bug RT#86065.
* Wed Jun 08 2011 [email protected]
  - update to 1.29:
    * artificially bump our version number because an upstream author decided to
      not play nice, fixes RT#68690
  - changes from 1.23:
    * support JSON v1.15 as well as 2.x
* Wed Dec 01 2010 [email protected]
  - switch to perl_requires macro
* Mon Nov 29 2010 [email protected]
  - remove /var/adm/perl-modules
* Sun Nov 28 2010 [email protected]
  - remove .packlist file

Files

/usr/lib/perl5/vendor_perl/5.40.0/JSON
/usr/lib/perl5/vendor_perl/5.40.0/JSON/Any.pm
/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


Generated by rpm2html 1.8.1

Fabrice Bellet, Mon Dec 9 23:39:48 2024