title: How to retain data type in django form submitted through AJAX
body: <p>I am trying submit a large django form using AJAX.  (I am using post method in AJAX. if this information is relevant here)</p>
  
  <p>If I do serializeArray() like below then I get a Json String.</p>
  
  <pre><code>formData = JSON.stringify($('#add_member_Form').serializeArray());
  </code></pre>
  
  <p>Something like this - </p>
  
  <pre><code>[{"name":"csrfmiddlewaretoken","value":"tZYajDy9XlzpQSyNwCXHY58S0fdI7BQS"},{"name":"first_name","value":"dajk"},{"name":"last_name","value":"khjk"},{"name":"gender","value":"2"}]
  </code></pre>
  
  <p>And then on server side I am using <code>json.loads()</code> to convert it into a list. But in this process I am losing the type of data. For example in the data above, <code>gender</code> was an integer but it is converted to string.<br>
  Is there any way to send this form data using AJAX and retain the data type (numbers remain integers when received in django view) for each field?</p>