Created
March 30, 2020 15:32
-
-
Save psanzay/5eb1072c41d78015099e94e95e57d762 to your computer and use it in GitHub Desktop.
reading data from file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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