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

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?

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

Replies are listed 'Best First'.
Re^5: WebService::YQL "Couldn't find a decoder method"
by ikegami (Patriarch) on Aug 12, 2018 at 07:45 UTC

    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.

      Setting JSON_ANY_ORDER didn't help me, so in the end I just hacked at the code of YQL.pm to use JSON::MaybeXS instead of JSON::Any as I need to get this working before I go on holiday tomorrow. That fixes the problem. Maybe I'll look for a more elegant solution when I get back. Thanks for your help everybody.

        Instead, submit your change as a bug fix for Webservice::YQL given that JSON::Any is deprecated