Pass json and deserialize form in django
问题 The issue is next: I send some post data with ajax to server. This data looks like: data = { form : $(this).serialize(), some_array: [2,3,4,1] } How to get form object in django? request.POST['form'] returns a string with a form. I'm trying to use import json library. But, when I run value = json.load(request.POST['some_array']) or form = json.load(request.POST['form']) it doesn't work. Printing request.POST['form'] returns the following: u'csrfmiddlewaretoken=I3LWAjfhZRGyd5NS3m9XcJkfklxNhxOR