Sunday, August 20, 2017

Parsing values from a JSON file?

import json
from pprint import pprint

with open('data.json') as data_file:    
    data = json.load(data_file)

pprint(data)

No comments:

Post a Comment