import json
import pprint
import os


with open('json/test.json') as json_data:
    d = json.load(json_data)
#    print(d)
#    pprint.pprint(d)
    for stat_categories in d["divisionteamstandings"]["division"][0]["teamentry"][0]["stats"]:
        pprint.pprint(stat_categories)

@@ -34,116 +34,291 @@
 os%0A%0A
-%0Awith open('json/test.json') as json_data:%0A    d = json.load(json_data)%0A#    print(d)%0A#    pprint.pprint(d)%0A
+#Open the JSON file that includes headers%0A%0Awith open('json/20160927-division-team-standings.json') as file:%0A    alltext = file.readlines()  #Put each line into a list%0A%0Afor lines in alltext:%0A    if lines.startswith('%7B'):%0A        rawdata = lines%0A        data = json.loads(rawdata)%0A    
     
@@ -341,16 +341,19 @@
 ies in d
+ata
 %5B%22divisi
@@ -411,16 +411,20 @@
 tats%22%5D:%0A
+    
         

Create JSON importer from raw JSON file including web headers and pretty print all of the stat categories for one file