title: Unable to print the output of API response with python
body: <p>Iam not able to print the output of the below snippet but code runs successfully.Could anyone please help on this were I am doing things wrong?</p>
  <pre><code>import requests
  import json
  # import pdb
  
  def test_login_withvalidcredentials():
      URL = 'https://***api.***.com:8443/api/users/login'
      payload = {
      &quot;username&quot;: &quot;****.com&quot;,
      &quot;password&quot;: &quot;***&quot;}
      headers = {'Content-Type': 'application/json'}
      response = requests.post(URL,headers=headers,data=json.dumps(payload))
      assert response.status_code == 200
      output = json.loads(response.content)
      # pdb.set_trace()
      print(type(output))
      print(output)
  </code></pre>