I have a very simple json I can't parse with simplejson module. Reproduction:
import simplejson as json
json.loads(r'{"translatedatt1":"Vari\351es"}')
Result:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.5/simplejson/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib/pymodules/python2.5/simplejson/decoder.py", line 335, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/pymodules/python2.5/simplejson/decoder.py", line 351, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Invalid \escape: line 1 column 23 (char 23)
Anyone has an idea what's wrong and how to parse the json above correctly?
The string that is encoded there is: Variées
P.S. I use python 2.5
Thanks a lot!