Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
https://metacpan.org/release/JSON-MaybeXS