zigdon/twirssi — Issue #41: Can't locate object method "objToJson" via package "JSON::Any"
Author: kjikaqawej
Created: 2011-10-15 19:15:57+00:00
State: open

Can't locate object method "objToJson" via package "JSON::Any" at $HOME/.irssi/scripts/twirssi.pl line XXXX [1].

Kept getting this error when trying to get updates, and the script would unload. Solution: add something like
```use JSON::Any qw(XS JSON PP);``` at the top. reload; works fine afterwards.

Got that ^^^ from the [module's docs](http://search.cpan.org/~perigrin/JSON-Any-1.29/lib/JSON/Any.pm) on CPAN.

-----
[1] line depends on what version it is, 2655 in beta from git, 1839 in 2.4.1 and 2.5.0