Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-10 Thread zljubisic
That was it. Thanks guys for your help. Best regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread Rustom Mody
On Tuesday, May 10, 2016 at 7:43:17 AM UTC+5:30, Steven D'Aprano wrote: > On Tue, 10 May 2016 09:07 am, Terry Reedy wrote: > > > Editorial: Programming classes should teach basic debugging better. I > > have seen numerous newbie Stackoverflow questions where the person > > should have started with

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread Steven D'Aprano
On Tue, 10 May 2016 09:07 am, Terry Reedy wrote: > Editorial: Programming classes should teach basic debugging better. I > have seen numerous newbie Stackoverflow questions where the person > should have started with adding a print statement before posting a > question. +1 -- Steven --

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread Terry Reedy
On 5/9/2016 3:56 PM, zljubi...@gmail.com wrote: Hi, in python3 my variable looks like this: a = b'{"uuid":"5730e8666ffa02.34177329","error":""}' str(a) = 'b\'{"uuid":"5730e8666ffa02.34177329","error":""}\'' If I execute the following command I get the error: json.loads(str(a)) Traceback (mo

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread Ben Bacarisse
zljubi...@gmail.com writes: > in python3 my variable looks like this: > > a = b'{"uuid":"5730e8666ffa02.34177329","error":""}' > str(a) = 'b\'{"uuid":"5730e8666ffa02.34177329","error":""}\'' > > If I execute the following command I get the error: > json.loads(str(a)) > Traceback (most recent

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread MRAB
On 2016-05-09 20:56, zljubi...@gmail.com wrote: Hi, in python3 my variable looks like this: a = b'{"uuid":"5730e8666ffa02.34177329","error":""}' str(a) = 'b\'{"uuid":"5730e8666ffa02.34177329","error":""}\'' If I execute the following command I get the error: json.loads(str(a)) Traceback (mo

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread Peter Otten
zljubi...@gmail.com wrote: > Hi, > > in python3 my variable looks like this: > > a = b'{"uuid":"5730e8666ffa02.34177329","error":""}' > str(a) = 'b\'{"uuid":"5730e8666ffa02.34177329","error":""}\'' > > If I execute the following command I get the error: > json.loads(str(a)) > Traceback (m

json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-09 Thread zljubisic
Hi, in python3 my variable looks like this: a = b'{"uuid":"5730e8666ffa02.34177329","error":""}' str(a) = 'b\'{"uuid":"5730e8666ffa02.34177329","error":""}\'' If I execute the following command I get the error: >>> json.loads(str(a)) Traceback (most recent call last): File "C:\Program Files (