in reply to Re: WebService::YQL "Couldn't find a decoder method"
in thread WebService::YQL "Couldn't find a decoder method"

Thanks, but I have both JSON::XS and JSON::PP installed (I can't install Cpanel::JSON:XS as it requires a C compiler, which I don't have at my host). I've used CPAN to ensure I have the latest versions of the modules concerned. I still get the error.
  • Comment on Re^2: WebService::YQL "Couldn't find a decoder method"

Replies are listed 'Best First'.
Re^3: WebService::YQL "Couldn't find a decoder method"
by poj (Abbot) on Aug 11, 2018 at 17:22 UTC

    What version of JSON::Any do you have ? See this 2013 bug report https://rt.cpan.org/Public/Bug/Display.html?id=89853

    The newly released version 3.0/3.01 of JSON::XS is not compatible with JSON::Any 1.30. After upgrading JSON::XS, trying to import JSON::Any results in: Couldn't find a decoder method.

    poj

      That sounds promising.

      JSON::Any Version 1.39

      JSON::XS Version 3.04

      But what do I do about it? Is it possible to load an older version of JSON::XS somehow? How would I get it to supersede the version that's there now (which doesn't appear to be in any of my local library directories, so I guess it's part of the host's core Perl installation)?

      Maybe I can edit the code within WebService::YQL to not call JSON::Any at all, and to call one of the underlying JSON libraries directly instead?

        That problem was fixed in JSON::Any 1.31 according to the ticket.

        But if for some odd reason that's the problem, you could set env var JSON_ANY_ORDER to PP.