Subject: | JSON parsing errors |
Date: | Tue, 4 Jan 2011 15:45:38 -0500 |
To: | bug-AnyEvent-Twitter-Stream [...] rt.cpan.org |
From: | Bryan Paluch <bryanpaluch [...] gmail.com> |
Hello,
When I try to run the example tracker.pl code with my own consumer key I get
issues with parsing JSON objects. There is normally 3 to 4 characters before
the initial { sign and I think that this throwing off the JSON parser.
eg:
malformed JSON string, neither array, object, number, string or atom, at
character offset 0 (before "DD8") at
/home/bpaluch/perl/lib/AnyEvent/Twitter/Stream.pm line 158.
JSON text must be an object or array (but found number, string, true, false
or null, use allow_nonref to allow this) at
/home/bpaluch/perl/lib/AnyEvent/Twitter/Stream.pm line 158.
garbage after JSON object, at character offset 1 (before "A5") at
/home/bpaluch/perl/lib/AnyEvent/Twitter/Stream.pm line 158.
using .20 with v5.10.1 (*) built for i486-linux-gnu-thread-multi
on Linux 2.6.32.24+drm33.11-custom-uvc #1 SMP F (Ubuntu 10.04)
Thanks
Bryan Paluch