Skip to content

Instantly share code, notes, and snippets.

@psanzay
Created March 30, 2020 15:32
Show Gist options
  • Save psanzay/5eb1072c41d78015099e94e95e57d762 to your computer and use it in GitHub Desktop.
Save psanzay/5eb1072c41d78015099e94e95e57d762 to your computer and use it in GitHub Desktop.
reading data from file
import json
# open file
f = open("data.json")
# read data
line = f.readline()
#deserialize
data = json.loads(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment