parsing json output

Tim Roberts timr at probo.com
Thu Mar 20 23:31:27 EDT 2008


Gowri <gowricp at gmail.com> wrote:
>
>I understand it's JSON. My problem is that it just prints crazy
>characters instead of the JSON data.

Ah, I see.  I didn't get that from your original post.

>Like I mentioned, this happens on
>my windows machine which has python 2.5. On the other hand, the same
>code worked perfectly great on my linux machine with python 2.3.4.
>What could the problem be?

I'm not sure.  It worked correctly on my Windows machine with Python 2.4.4.
Are you going through a proxy?  Are you able to read other (non-JSON) web
pages using urllib2?
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list