I have a JSON file with the following content: {'好': {'word': '好'}}
. It is encoded in UTF-8.
I'm using the following Python code to print the content:
import json
with open(f'chinese_character.json', 'r', encoding="utf-8") as f:
contents = json.load(f)
print(contents)
It returned {'好': {'word': '好'}}
, which is not desired.
How can I have it printed {'好': {'word': '好'}}
?