Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53381
| References | <52227FC4.1060208@gmail.com> |
|---|---|
| Date | 2013-09-01 09:48 +1000 |
| Subject | Re: How do I process this using Python? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.427.1377992944.19984.python-list@python.org> (permalink) |
On Sun, Sep 1, 2013 at 9:44 AM, Anthony Papillion <papillion@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How do I process this using Python? Chris Angelico <rosuav@gmail.com> - 2013-09-01 09:48 +1000
csiph-web