This is usually when the result contains UTF-8 characters or Latin-1 characters when JSON is not expecting them. I've tried to escape/encode them in the recent versions of WWW::Mechanize::Firefox. From looking at your code, it seems you're using a very early version of the module when it was still named ::FireFox. Consider upgrading to the latest release which should handle weird encodings far better.
In reply to Re: mozrepl invalid characters
by Corion
in thread mozrepl invalid characters
by jkanko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |