json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch

阐述

  想要把一个字符串转化成字典对象,在使用json的过程出现如此报错

  json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch_第1张图片

 

 json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch_第2张图片

 

解决方法

    将字符串里面的单引号改为双引号

  json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch_第3张图片

 

  

 

你可能感兴趣的:(json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch)