import json
a = {"a":"你好"}
b = json.dumps(a, ensure_ascii=False)
c = json.loads(b)
print(c)
{'a': '你好'}
print(b)
{"a": "你好"}
type(a)
dict
type(b)
str
type(c)
dict
import json
a = {"a":"你好"}
b = json.dumps(a, ensure_ascii=False)
c = json.loads(b)
print(c)
{'a': '你好'}
print(b)
{"a": "你好"}
type(a)
dict
type(b)
str
type(c)
dict