title: Object has no attribute JSON
body: <p>I am trying to print the output of an API into a local json file so I can search through the file. </p>
  
  <p>I've tried looking at the type of <code>symbols</code> to see what the object type is but haven't had any luck. In statically typed languages I have an easier time troubleshooting due to knowing explicitly what the type is. Are there good ways to troubleshoot this type of problem moving forward?</p>
  
  <pre><code>symbols = urllib.request.urlopen("https://cloud.iexapis.com/stable/ref-data/symbols?format=json&amp;token={}".format(key))
  
  symbols.json.loads()
  with open('data.json', 'w', encoding='utf-8') as f:
      json.dump(symbols, f, ensure_ascii=False, indent=4)
  
  print(type(symbols))
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>AttributeError: 'HTTPResponse' object has no attribute 'json'
  </code></pre>