Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created Nov 22, 2020
Embed
What would you like to do?
import json
data = {'Title' : 'Data',
'Type' : 'Dummy information',
'Content':
{'Quality' :'Good',
'Compression':'Poor',
'Data Points': [3,1,4,1,5,9]
},
'Author':'JG'
}
with open ('data.json', "w") as outfile:
json.dump(data, outfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment