with open("example.json","w", encoding='utf-8') as jsonfile: json.dump(data,jsonfile,ensure_ascii=False)