title: How to loop through Json file using Python
body: <p>I am trying to print all the premier league fixtures this season through a JSON file I downloaded, using python. Here is the link to the Json file I am using - <a href="https://raw.githubusercontent.com/opendatajson/football.json/master/2016-17/en.1.json" rel="nofollow noreferrer">Json File</a></p>
  
  <p>I have managed to print the fixtures of the first matchday using a while loop. I want the date, home team, "vs", away team. I think I need to use an outer loop to loop through the other matchdays but I need help on this.</p>
  
  <pre><code>import json
  with open('en.1.json') as json_data:
      data = json.load(json_data)
      matchday = data['rounds'][0]['matches']
      i = 0
      while i &lt; len(matchday):
          home = matchday[i]['team1']
          away = matchday[i]['team2']
          date =  matchday[i]['date']
          print date, home['name'], "vs", away['name']
          i = i + 1
  </code></pre>