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

JSON::Any is a front end for one of many JSON decoders, but you don't have any of them installed. Just install one of them (e.g Cpanel::JSON::XS, JSON::XS, JSON::PP).

  • Comment on Re: WebService::YQL "Couldn't find a decoder method"

Replies are listed 'Best First'.
Re^2: WebService::YQL "Couldn't find a decoder method"
by chuntuk (Novice) on Aug 11, 2018 at 13:39 UTC
    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.

      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?