import json

dic={"chao":"123"}
dic_en=json.dumps(dic)
print(dic_en,type(dic_en))
{"chao": "123"} <class 'str'>
print(dic,type(dic))
{'chao': '123'} <class 'dict'>

json实例