title: Get Specific Data form request.post response in Python
body: <p>I am using sendgrid api to send email to users and then check the status,</p>
  
  <pre><code>res = requests.post(url)
  print type(res)
  </code></pre>
  
  <p>and it prints type as <code>&lt;class 'requests.models.Response'&gt;</code></p>
  
  <p>on the Postman API client I am getting this:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
  "message": "error",
  "errors": [
  "JSON in x-smtpapi could not be parsed"
  ]
  }
  </code></pre>
  
  <p>I want to fetch only the <code>message</code> value from response. I have written the following piece of code but doesn't work:</p>
  
  <pre><code>for keys in res.json():
      print str(res[keys]['message'])
  </code></pre>