Skip to content

Instantly share code, notes, and snippets.

@jaredjburgess
Created February 21, 2016 14:57
Show Gist options
  • Save jaredjburgess/be70cfa045317efc2dbd to your computer and use it in GitHub Desktop.
Save jaredjburgess/be70cfa045317efc2dbd to your computer and use it in GitHub Desktop.
Write to a JSON file in Python
open(path_to_file, 'w').write(json.dumps(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment