Solved from ast import literal_eval def | Chegg.com
python函数eval与ast.literal_eval的区别- Python社区
PyBites - #Python trick we learned this week: if json.loads complains about invalid JSON, you can try to convert your string to a dict using ast. literal_eval: | Facebook