title: JSON object must be str, not Response
body: <p>I'm making a request to a URL that returns a JSON file,</p>
  
  <pre><code>response = requests.get(url)
  response = json.loads(response)
  </code></pre>
  
  <p>And then, I am attempting to go through some of the data,</p>
  
  <pre><code>for documents in response["docs"]:
      # do something
  </code></pre>
  
  <p>Right now, the error I'm getting is </p>
  
  <pre><code>TypeError: the JSON object must be str, not 'Response'
  </code></pre>
  
  <p>In order to avoid this, I tried,</p>
  
  <pre><code>response = requests.get(url).json()
  </code></pre>
  
  <p>But then, I can't traverse the response because I get the error: </p>
  
  <pre><code>KeyError: 'docs'
  </code></pre>
  
  <p>I'm new to Python and not fully aware of the best way to get JSON data and parse it. Suggestions?</p>
  
  <p>Here is a sample of the data being received,</p>
  
  <blockquote>
    <p>{'status': 'OK', 'response': {'meta': {'time': 9, 'hits': 11, 'offset': 0}, 'docs': [{'type_of_material': 'News', 'pub_date': '2017-01-01T09:12:04+0000', 'document_type': 'article', '_id': '5868c7e995d0e03926078885', 'lead_paragraph': 'The country’s leader spoke proudly of the progress of its nuclear weapons and ballistic missile programs.', .....</p>
  </blockquote>