title: Passing data from html to python using ajax
body: <p>Greeting everyone, I'm trying to pass json data from html to python, Im getting the data but the format is incorrect,</p>
  
  <p>Below is my code</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;select class="js-example-basic-multiple" id="Status" name="Status" multiple="multiple" style="display:inline-block;"&gt;
      {% comment %} &lt;option value="ALL" checked="1"&gt;ALL&lt;/option&gt; {% endcomment %}
      &lt;option value="new"&gt;New&lt;/option&gt;
      &lt;option value="bid"&gt;Bid&lt;/option&gt;
      &lt;option value="inprogress"&gt;In Progress&lt;/option&gt;
      &lt;option value="onhold"&gt;On Hold&lt;/option&gt;
      &lt;option value="completed"&gt;Completed&lt;/option&gt;
      &lt;option value="archived"&gt;Archived&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code>$('#Status').change(function(){
      var selected_status = $('#Status').select2('val');
      var status_text = JSON.stringify(selected_status);
      $.ajax({
              url : '/dashboard/marketing/', // the endpoint
              type : 'GET', // http method
              data : { 'stat' : status_text,
                      'csrfmiddlewaretoken': '{{csrf_token}}'
                  }, // data sent with the post request
              // handle a successful response
              success : function(data) {
              },
      });
  });
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>stat = request.GET.getlist('stat')
      print(stat)
      for selected_status in stat:
          get_project_on_status = Project.objects.all().filter(project_stage=selected_status)
          for project in get_project_on_status:
              project_on_status_list.append(project)
  </code></pre>
  
  <p>The result I wanted is :</p>
  
  <pre><code>["new","bid","inprogress","onhold","completed"]
  </code></pre>
  
  <p>but what I'm getting is :</p>
  
  <pre><code>['["new","bid","inprogress","onhold","completed"]']
  </code></pre>
  
  <p>How can i remove the extra bracket? thanks!</p>