Python解析json文件遇到问题
文件内容:“[{"\"item\":\"acpi\",\"starttime:\":1488124800,\"endtime\":1488135600"}]”
代码:
with open(“/home/json”)as json_file:
data=json.load(json_file)
print data['item']
TypeError:string indices must be integers,not str
新人不知道哪里出了问题,求教这个应该怎么解析?