Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71540
| Date | 2014-05-14 10:36 +0200 |
|---|---|
| From | Tamer Higazi <th982a@googlemail.com> |
| Subject | problems decoding json objects |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9992.1400057914.18130.python-list@python.org> (permalink) |
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@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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
problems decoding json objects Tamer Higazi <th982a@googlemail.com> - 2014-05-14 10:36 +0200 Re: problems decoding json objects Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-14 12:04 +0000
csiph-web