title: Response' object is not subscriptable Python http post request
body: <p>I am trying to post a <code>HTTP</code> request. I have managed to get the code to work but I am struggling returning some of the result. </p>
  
  <p>The result looks like this </p>
  
  <pre><code>{
    "requestId" : "8317cgs1e1-36hd42-43h6be-br34r2-c70a6ege3fs5sbh",
    "numberOfRequests" : 1893
  }
  </code></pre>
  
  <p>I am trying to get the requestId but I keep getting the error Response' object is not subscriptable</p>
  
  <pre><code>import json
  import requests
  
  workingFile = 'D:\\test.json'
  
  with open(workingFile, 'r') as fh:
      data = json.load(fh)
  
  url = 'http://jsontest'
  username = 'user'
  password = 'password123'
  
  requestpost = requests.post(url, json=data, auth=(username, password))
  
  print(requestpost["requestId"])
  </code></pre>