2021-03-04から1日間の記事一覧
import json if __name__ == "__main__": payload = '{"abc" : "あいうえお"}' x = json.loads(payload) print(x) print(type(x)) y = json.dumps(x, ensure_ascii=False) print(y) print(type(y)) 実行結果 {'abc': 'あいうえお'} <class 'dict'> {"abc": "あいうえお"} <class 'str'> </class></class>…