title: Getting a KeyError when parsing JSON file
body: <p>I just started working with JSON files yesterday, and I've searched other questions relating to KeyError, but none of the answers have helped so far. I'm trying to parse this JSON file and create a dictionary making 'article' the key and 'views' the value. However, I just get a KeyError when trying to print it. The code works if I use a different URL, but I need to use this one. Am I just printing this wrong?</p>
  
  <pre><code>def display(url, text):
      print(url)
      dictionary = json.loads(text)
      for item in dictionary['items']:
          print(f"{item['article']}:\t\t{item['views']}")
  
  
  def main():
      url = "https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikiversity/all-access/2018/01/all-days"
      display(url, text)
  
  
  
  main()
  </code></pre>