ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

时间:2022-05-17 17:05:21

ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

这个错误是由于json.loads()接受的参数并不是直接的一个字典,而需要固定格式的。 引号必须为双引号。单引号不行

例如:
错误{123:123,234:234}
正确{"123":"123","234":"234"}