in reply to Re: Issues using boolean_values in JSON v4.02
in thread Issues using boolean_values in JSON v4.02

Your fix can't possibly work.

JSON inherits from either JSON::PP, JSON::XS or Cpanel::JSON::XS

If it's inheriting from JSON::PP, then your fix does nothing at all. That doesn't help.

If it's inheriting from JSON::XS, your fix would cause a JSON::XS object to be passed to JSON::PP. That won't work.

If it's inheriting from Cpanel::JSON::XS, your fix would cause a Cpanel::JSON::XS object to be passed to JSON::PP. That won't work.

  • Comment on Re^2: Issues using boolean_values in JSON v4.02

Replies are listed 'Best First'.
Re^3: Issues using boolean_values in JSON v4.02
by hv (Prior) on Jun 15, 2023 at 12:14 UTC

    Ah, I think you're right; I guess I didn't read enough of the code - I see now that packages such as JSON::Backend::PP fiddle with @JSON::ISA (which seems like exactly the sort of action-at-a-distance we usually recommend against).