Skip to content

Instantly share code, notes, and snippets.

@offby1
Created July 19, 2015 02:34
Show Gist options
  • Select an option

  • Save offby1/7ed68023833300ad3be5 to your computer and use it in GitHub Desktop.

Select an option

Save offby1/7ed68023833300ad3be5 to your computer and use it in GitHub Desktop.
import json
l = []
l.append(1)
l.append("cat")
l.append("OK, enough for now")
with open("list.json", 'w') as outf:
json.dump(l, outf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment