perl-JSON-MaybeXS-1.004008-6.fc45
complete
Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
built by guoguo
completed Fri, 16 Oct 2026 20:49:16 UTC
Description
This module first checks to see if either Cpanel::JSON::XS or JSON::XS
is already loaded, in which case it uses that module. Otherwise it tries
to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and
either uses the first module it finds or throws an error.
It then exports the "encode_json" and "decode_json" functions from the
loaded module, along with a "JSON" constant that returns the class name
for calling "new" on.
If you're writing fresh code rather than replacing JSON.pm usage, you
might want to pass options as constructor args rather than calling
mutators, so we provide our own "new" method that supports that.
RPMs
2 files, 2 archessrc
noarch
Logs
noarch
Changelog
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.004008-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.004008-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.004008-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.004008-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Aug 13 2024 Paul Howarth <paul@city-fan.org> - 1.004008-2 - Fix runtime dependency on Cpanel::JSON::XS 4.38 (rhbz#2304277) * Sun Aug 11 2024 Paul Howarth <paul@city-fan.org> - 1.004008-1 - Update to 1.004008 - Improved boolean testing * Sun Aug 04 2024 Paul Howarth <paul@city-fan.org> - 1.004007-1 - Update to 1.004007 - is_bool() now recognizes core booleans (perl 5.36+); note that JSON::PP 4.11 and Cpanel::JSON::XS 4.38 are required to properly encode them * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.004005-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild