I am trying to configure the view to receive JSON notification from the API. I am trying to figure out how to get JSON data, and currently I have this as a starting point to see that the request is correctly accepted:
def api_response(request): print request return HttpResponse('')
I know that a JSON object exists, because in print request it shows:
META:{'CONTENT_LENGTH': '178', [Fri Sep 09 16:42:27 2011] [error] 'CONTENT_TYPE': 'application/json',
However, both POST and GET QueryDicts are empty. How do I set up a view to receive a JSON object so that I can handle it? Thanks.
source share