title: Retrieving JSON from HttpResponse from Django view
body: <p>So in a view for one of my Django apps, the method returns a HttpResponse object.</p>
  
  <pre><code>json_str = json.dumps(json_dict)
  return HttpResponse(json_str, content_type="application/json")
  </code></pre>
  
  <p>In my test module for the app (tests.py), I have simulated a GET request</p>
  
  <pre><code>def setUp(self):
      c = Client()
      response = c.get('/url/to/view/')
  </code></pre>
  
  <p>From what I read in the Django testing documentation, response will be a Response object, which is similar but not exactly the same as a HttpResponse object. So how do I retrieve the json string from response?</p>