Skip to content

Instantly share code, notes, and snippets.

@koluku
Created February 17, 2020 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koluku/faa81313759ceb83a2848626320bf8de to your computer and use it in GitHub Desktop.
Save koluku/faa81313759ceb83a2848626320bf8de to your computer and use it in GitHub Desktop.
import json
def load(json_file):
with open(json_file, "r") as f:
data = json.load(f)
return data
def save(json_file, data):
with open(json_file, "w") as f:
json.dump(data, f, indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment