my_dict = {'one':1,'two':2} with open('your_filename', 'w') as fp: json.dump(my_dict, fp, indent=4, ensure_ascii=False) fp.close()