title: How to turn text/html requests response into JSON format in python?
body: <p>I have a problem just like I mentioned in topic. Trying to get the name of all CVE's on website and their description. I want to iterate JSON response using for loop and send everything to DB. Code:</p>
  
  <pre><code>r = requests.get('https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=microsoft')
  r.headers['content-type']
  </code></pre>
  
  <p>After printing out the headers it shows me that the response is text/html and I cannot convert it into JSON. I was trying to do it like I usually do, following the documentation using <code>r.json()</code>. But after running code im getting error like this:</p>
  
  <pre><code>raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  
  <p>I also tried <code>json.dumps()</code> , unfortunatelly didn't solve the problem. I was looking for the solution for hours and couldn't find anything that would help me convert this response into JSON. <strong>Is this even possible with this website and this response? Can I do it differently? Is there any other good solution to achieve my goal?</strong> If I wrote something not understendable, please correct me or ask me a question. </p>
  
  <p>Thank you a lot in advance for any kind of a help. :-)</p>