title: How to send the javascript list of dictionaries object to django ajax
body: <p>I have template like this</p>
  
  <pre><code>&lt;a href="javascript:;" onclick="AddPropety();" &gt;Submit &lt;/a&gt;
  
  
  function AddPropety(){
    var list = [{'name':'parrot','color':'green'},{'name':'dog','color':'brown'},etc...];
    var formData = new FormData($('#submit_form')[0]);
    formData.append("list", list);
    $.ajax({
      url: "{% url 'add_details' %}",
      type: 'POST',
      data: formData,
      async: true,
      cache: false,
      contentType: false,
      processData: false,
  
  
    });// end of $.ajax
  
    return false;
  
  }
  </code></pre>
  
  <p>and ajax shown below</p>
  
  <pre><code>def add_details(request):
      response_data = {}
      if request.is_ajax():
  
          lists = request.POST.get('list')
          print lists
          for list in lists:  
              print list
          response_data['status'] = "success"
  
      else:
          response_data['status'] = "Error"
  
      return HttpResponse(json.dumps(response_data), content_type='application/json')
  </code></pre>
  
  <p>while run this code i getting values like  object. How to get values like dictionary or list of dictionaries                                                                                     </p>
  
  <p>thanks in advance ..</p>