www.lsauer.com; 2013 lo sauer ###JSONDecodeError: Expecting value: line 1 column 1 (char 0) ###ValueError: Expecting property name ######Related to: http://stackoverflow.com/questions/16573332/jsondecodeerror-expecting-value-line-1-column-1-char-0 Trying to parse json in python. ValueError: Expecting property name http://stackoverflow.com/questions/9187885/trying-to-parse-json-in-python-valueerror-expecting-property-name
###Troubleshoot
Check the response data-body, whether actual data is present and a data-dump appears to be well-formatted.
In most cases your json.loads- JSONDecodeError: Expecting value: line 1 column 1 (char 0) error is due to :
non-JSON conforming quoting
XML/HTML output (that is, a string starting with <), or
incompatible character encoding
Ultimately the error tells you that at the very first position the string already doesn't conform to JSON.
As such, if parsing fails, despite having a data-body that looks at first glance JSON-like, try replacing the quotes of the data-body, as follows.
@tiger-flying Just wanted to comment and say thanks! I was doing the same thing - had no idea the trailing comma was the culprit!!