import json
data=[{'d':1,'c':[{'label':2,'points':3}],'type':'pl'}]
# print(data2)
with open('data.json', 'w') as f:
json.dump(data, f)

import json
data=[{'d':1,'c':[{'label':2,'points':3}],'type':'pl'}]
# print(data2)
with open('data.json', 'w') as f:
json.dump(data, f)