0
其實,我是新來的JSON-python和我得到simplejson.scanner.jsondecodeerror的錯誤:期待值期待值:第1行1列(字符0),我試圖爲[「系列「] [」TimeStamp「]數據JSONDecodeError使用JSON數據
import urllib
import simplejson
response = urllib.urlopen("http://chartapi.finance.yahoo.com/instrument/1.0/RUSHIL.NS/chartdata;type=quote;range=5d/json")
#response.read() //this works
data = simplejson.loads(response)
print data //error
謝謝,我沒有注意到 –