json decode issue

Nobody nobody at nowhere.com
Fri Jul 15 01:10:04 EDT 2011


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.




More information about the Python-list mailing list