Sun, 08 Nov 2026 14:28:04 UTC Log in
Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP 49.04 KB built 2026-10-16 20:48:47 GMT

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.

Dependencies

30 total
Requires29
  • coreutils
  • make
  • perl(Carp)
  • perl(Config)
  • perl(Cpanel::JSON::XS) >= 4.38
  • perl(DynaLoader)
  • perl(Exporter)
  • perl(ExtUtils::MakeMaker) >= 6.76
  • perl(ExtUtils::Mksymlists)
  • perl(File::Basename)
  • perl(File::Spec::Functions)
  • perl(File::Temp)
  • perl(JSON::PP) >= 2.27300
  • perl(JSON::XS) >= 3.0
  • perl(Scalar::Util)
  • perl(Test::More) >= 0.88
  • perl(Test::Needs) >= 0.002006
  • perl(Text::ParseWords)
  • perl(base)
  • perl(constant)
  • perl(experimental)
  • perl(if)
  • perl(lib)
  • perl(strict)
  • perl(warnings)
  • perl-generators
  • perl-interpreter
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
Provides1
  • perl-JSON-MaybeXS = 1.004008-6.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

2
Files 1–2 of 2

Component of

buildroots that installed this RPM

No Buildroots