problems decoding json objects
Tamer Higazi
th982a at googlemail.com
Wed May 14 04:36:11 EDT 2014
Hi people!
My JSON String:
from json.decoder import JSONDecoder
myjs =
'{"AVName":"Tamer","ANName":"Higazi","AAnschrift":"Bauerngasse","AHausnr":"1","APLZ":"55116","AOrt":"Mainz"},{"KontaktTel":["01234","11223344"],{"ZahlungsArt":"0"},{"ZugangsDaten":["tamer.higazi at nomail.com","mypass"]}'
If I try to decode it, with:
JSD = JSONDecoder()
rsx = JSD.decode(myjs)
I get this error message:
>>> JSD.decode(myjs)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/json/decoder.py", line 368, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 108 - line 1 column 220 (char 107
- 219)
How do I solve this problem ?!
For any help, thanks
Tamer
More information about the Python-list
mailing list