Re: problems decoding json objects

2014-05-14 Thread Tamer Higazi
You are right! It was all alone my mistake which I recently figured out. Thanks for helping me. Tamer Am 14.05.2014 11:20, schrieb Ben Finney: > Tamer Higazi writes: > > That's not a valid JSON document. See http://json.org/>. > -- https://mail.python.org/mailman/listinfo/python-list

Re: problems decoding json objects

2014-05-14 Thread Denis McMahon
On Wed, 14 May 2014 10:36:11 +0200, Tamer Higazi wrote: > 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"],{"Zahlun

Re: problems decoding json objects

2014-05-14 Thread Roy Smith
In article , Skip Montanaro wrote: > I guess JSON doesn't have tuples JSON has sequences, which both Python lists and tuples serialize as (losing the distinction between them). In the other direction, JSON sequences typically unpack as lists, but I think that's just convention. There might

Re: problems decoding json objects

2014-05-14 Thread Ben Finney
Ben Finney writes: > Tamer Higazi writes: > > How do I solve this problem ?! > > Fix the document. Where did it come from? If you're the one typing raw JSON into your program: Fix that. Don't type raw JSON. JSON is an object serialisation format; it's foolish to type it yourself. You should on

Re: problems decoding json objects

2014-05-14 Thread Skip Montanaro
On Wed, May 14, 2014 at 3:36 AM, Tamer Higazi wrote: > myjs = > '{"AVName":"Tamer","ANName":"Higazi","AAnschrift":"Bauerngasse","AHausnr":"1","APLZ":"55116","AOrt":"Mainz"},{"KontaktTel":["01234","11223344"],{"ZahlungsArt":"0"},{"ZugangsDaten":["tamer.hig...@nomail.com","mypass"]}' Following up o

Re: problems decoding json objects

2014-05-14 Thread Ben Finney
Tamer Higazi writes: > myjs = > '{"AVName":"Tamer","ANName":"Higazi","AAnschrift":"Bauerngasse","AHausnr":"1","APLZ":"55116","AOrt":"Mainz"},{"KontaktTel":["01234","11223344"],{"ZahlungsArt":"0"},{"ZugangsDaten":["tamer.hig...@nomail.com","mypass"]}' That's not a valid JSON document. See http://

problems decoding json objects

2014-05-14 Thread Tamer Higazi
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.hig...@nomail.com","mypass"]}' If I