How To Get JSON Data with Django
When I was working on my web based software project I need to implement a json communication with Django and Jquery. The scenario was simple on the client side data is sent by using jquery and ajax , on the server side django will read json request and get array items from it. I will stuck with this scenarion for 3 hours but at last I have found the solution and here it is
body_unicode = request.body.decode('utf-8')
body = json.loads(body_unicode)
Here body is list of json elements.