''' This example reads a json file and prints the content to the screen. ''' import json from pprint import pprint #json_file = 'new-data.json' json_file = 'small-dataset.json' #json_file = 'simple.json' #json_file = 'primer-dataset.json' json_data = open(json_file) data = json.load(json_data) json_data.close() pprint(data) # pretty printing #print(data) # pretty printing