python json解析跳过错误_急! python json解析问题

求问这一句到底哪里错了!!!importjsondata=json.loads('{"ID":"2","IP":"12.12.12.12","Port":"3000","Sensor_Count":"1","Control_Count":"1","Sensors":{"Sensor_Name":"tem","T...

求问 这一句 到底哪里错了!!!

import json

data= json.loads('{"ID": "2", "IP":"12.12.12.12", "Port": "3000", "Sensor_Count":"1", "Control_Count": "1", "Sensors":{"Sensor_Name": "tem", "Type_Count": "1", "Types":{ "types":["temp","C"],"types":["hum","N"],}},"Controls":["LCD","Relay"] }')

错误显示:

Traceback (most recent call last):

File "", line 1, in

data= json.loads('{"ID": "2", "IP":"12.12.12.12", "Port": "3000", "Sensor_Count":"1", "Control_Count": "1", "Sensors":{"Sensor_Name": "tem", "Type_Count": "1", "Types":{ "types":["temp","C"],"types":["hum","N"],}},"Controls":["LCD","Relay"] }')

File "D:\python2.7\lib\json\__init__.py", line 338, in loads

return _default_decoder.decode(s)

File "D:\python2.7\lib\json\decoder.py", line 365, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "D:\python2.7\lib\json\decoder.py", line 381, in raw_decode

obj, end = self.scan_once(s, idx)

ValueError: Expecting property name: line 1 column 194 (char 193)

展开

你可能感兴趣的:(python,json解析跳过错误)