Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9483

Re: json decode issue

Date 2011-07-14 20:20 +0100
From MRAB <python@mrabarnett.plus.com>
Subject Re: json decode issue
References <87ac9918-c05c-482e-9789-ee90b1e9eb80@glegroupsg2000goo.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1034.1310671218.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 14/07/2011 18:22, Miki Tebeka wrote:
> Greetings,
>
> 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?
>
Is that valid JSON? If not, you'll either need to fix the program which
generated it (or report it as a bug), or pre-process the JSON to
correct the error, if you know what it should be.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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