Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9504
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: json decode issue |
| Date | 2011-07-15 06:10 +0100 |
| Message-Id | <pan.2011.07.15.05.10.03.505000@nowhere.com> |
| Newsgroups | comp.lang.python |
| References | <87ac9918-c05c-482e-9789-ee90b1e9eb80@glegroupsg2000goo.googlegroups.com> |
| Organization | Zen Internet |
On Thu, 14 Jul 2011 10:22:44 -0700, Miki Tebeka wrote:
> I'm trying to decode JSON output of a Java program (jackson) and having
> some issues. The cause of the problem is the following snippet:
> {
> "description": "... lives\uMOVE⢠OFFERS ",
> }
> Which causes ValueError: Invalid \uXXXX escape.
>
> Any ideas on how to fix this?
It's the input data which is broken. The parser is behaving correctly by
raising an exception.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
json decode issue Miki Tebeka <miki.tebeka@gmail.com> - 2011-07-14 10:22 -0700 Re: json decode issue MRAB <python@mrabarnett.plus.com> - 2011-07-14 20:20 +0100 Re: json decode issue Terry Reedy <tjreedy@udel.edu> - 2011-07-14 16:03 -0400 Re: json decode issue Nobody <nobody@nowhere.com> - 2011-07-15 06:10 +0100
csiph-web