python读取json文件报了个错(json.decoder.jsondecodeerror expecting property name enclosed in double quotes),问题在于一行行读json时,第一行为{时,并没有双引号,将按行读改为一次读入所有字符即可。比如:with open("3412.9_296.4.json", "r") as f: json_str = f.read()print(json_str)your_dict = json.loads(json_str)shapes = your_dict["shapes"]length = len(shapes)