title: Getting a JSON request in a view (using Django)
body: <p>I am trying to set up a view to received a JSON notification from an API. I'm trying to figure out how to get the JSON data, and I currently have this as a starting point to see that the request is being properly received:</p>
  
  <pre><code>def api_response(request):
      print request
      return HttpResponse('')
  </code></pre>
  
  <p>I know the JSON object is there because in the <code>print request</code> it shows: </p>
  
  <pre><code>META:{'CONTENT_LENGTH': '178',
  [Fri Sep 09 16:42:27 2011] [error]  'CONTENT_TYPE': 'application/json',
  </code></pre>
  
  <p>However, both of the POST and GET QueryDicts are empty. How would I set up a view to receive the JSON object so I can process it? Thank you.</p>