bonjour,
Comment importer un fichier json sans cette convertion unicode des string ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 >>> import json >>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]') [u'foo', {u'bar': [u'baz', None, 1.0, 2]}]
Le décodage avec try/except sur les champs individuels est trop long
https://docs.python.org/2/library/json.html
@+
Partager