Python JSON loads/dumps breaks Unicode? Python JSON loads/dumps breaks Unicode? json json

Python JSON loads/dumps breaks Unicode?


Call json.dumps with ensure_ascii=False:

json_string = json.dumps(json_dict, ensure_ascii=False)

On Python 2, the return value will be unicode instead of str, so you might want to encode it before doing anything else with it.