Skip to content

Instantly share code, notes, and snippets.

@KrisYu
Created November 17, 2021 15:38
Show Gist options
  • Save KrisYu/4e29af2a3be5a30df71bdc218cb6f12e to your computer and use it in GitHub Desktop.
Save KrisYu/4e29af2a3be5a30df71bdc218cb6f12e to your computer and use it in GitHub Desktop.
read json file
def read_data_from_file( filename ):
with open(filename, 'r') as json_file:
data = json.load(json_file)
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment