title: assert JSON response
body: <p>i have an python API call, and the server response is coming to me as JSON output.</p>
  
  <p>How can I assert that the "status" from this output is 0 for example:</p>
  
  <pre><code>def test_case_connection():
      req = requests.get_simple(url=Server.MY_SERVER, params=my_vars)
      assert req["status"]="0"
  </code></pre>
  
  <p>is what i've tried.</p>
  
  <p>The response is looking like:</p>
  
  <pre><code>{"status" : 0, ......}
  </code></pre>
  
  <p>error i got is:</p>
  
  <pre><code>TypeError: 'Response' object has no attribute '__getitem__'
  </code></pre>