Python处理json的错误 obj, end = self.scan_once(s, idx) ValueError: Expecting property name: line 2 column 17 (char 18)时间:2022-01-05 17:04:47解决办法: 先去回车: d3 = d2.replace('\n', '') 再把单引号替换为双引号。d3 = d3.replace("'", '"')