claudiu-c
4/21/2017 - 2:58 PM

read json from file in python

read json from file in python

with open("data/github.json") as json_file:
    json_data = json.load(json_file)
    for item in json_data["items"]:
        print(item["full_name"])
        print(item["stargazers_count"])