标签: python json
我正在访问外部的api。我收到错误NameError:未定义名称'true'。由于没有api,我无法将true更改为'true'。由于json.loads是字符串,所以我不能放j。如何解决这个问题
'true'
json.loads
j
j ='''{"advanced_features": { "face_details": true }}''' type(j)
str
image_json = eval(j) type(image_json)