Como escrever no uft-8 no arquivo json write python

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