import json my_data = '{"some_japanese_text":"このコーディネートのスタイリストについて"}' # load it in a dict json_data = json.loads(my_data, encoding='utf-8') print(type(json_data)) # print the sting print(json.dumps(json_data, indent=2, ensure_ascii=False)) # or write it to foo.json with open('foo.json', 'w') as jf: json.dump(json_data, jf, indent=2, ensure_ascii=False)
Output:<class 'dict'>
{
"some_japanese_text": "このコーディネートのスタイリストについて"
}
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs