import json
import codecs
data = dict(
text='today is good day',
month=3,
date=12
)
with codecs.open(path, 'w', 'utf-8') as f:
json.dump(data, f, indent=2, ensure_ascii=False)
import json
import codecs
data = dict(
text='today is good day',
month=3,
date=12
)
with codecs.open(path, 'w', 'utf-8') as f:
json.dump(data, f, indent=2, ensure_ascii=False)