in reply to JSON not loading Cpanel::JSON::XS

If you have Cpanel::JSON::XS installed and want JSON to use that module, you might want to look at the Choosing Backend section of JSON's documentation, which provides instructions on how to specify a backend module to use.

Replies are listed 'Best First'.
Re^2: JSON not loading Cpanel::JSON::XS
by 1nickt (Canon) on Apr 16, 2018 at 16:01 UTC

    Awesome, thanks! RTFM, I guess! So JSON will automatically load JSON::XS if installed, but you have to specify Cpanel::JSON::XS if you want it with PERL_JSON_BACKEND=Cpanel::JSON::XS ...


    The way forward always starts with a minimal test.