How do I process this using Python?

Chris Angelico rosuav at gmail.com
Sat Aug 31 19:48:55 EDT 2013


On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion <papillion at gmail.com> wrote:
> I'm writing a processor for Bitmessage messages and I am needing to
> parse the following returned JSON string:
>
> {u'inboxMessages':

Does the JSON string really have those u prefixes and apostrophes?
That's not valid JSON. You may be able to use ast.literal_eval() on it
- I was able to with the example data - but not a JSON parser. Can you
sort out your transmission end?

ChrisA



More information about the Python-list mailing list