import json
names = ['佐藤ジュリア','吉田リリー','鈴木サム','山田クレイム']
data = [{'id':i,'name':name} for i,name in enumerate(names)]
open("aho.json","w").close()
with open("aho.json","w",encoding="utf-8") as f:
json.dump(data,f,indent=4)
with open("aho.json","r",encoding="shift-jis") as f:
data = json.load(f)
print(data)
To embed this project on your website, copy the following code and paste it into your website's HTML: