title: how to get data from 'ImmutableMultiDict' in flask
body: <p>I am learning how to use ajax and Flask ,so what I do is I send a ajax request and I receive the data as <code>post</code> request in my python file</p>
  
  <p><code>My html file contains this code</code></p>
  
  <pre><code>var data = {"name":"John Doe","age":"21"};
  $.ajax({
    url:'/post/data',
    datatype : "json",
    contentType: "application/json; charset=utf-8",
    data : JSON.stringify(data),
    success : function(result) {
      jQuery("#clash").html(result); 
    },error : function(result){
       console.log(result);
   }
  });
  </code></pre>
  
  <p>And My python file contains :</p>
  
  <pre><code>@app.route('/post/data',methods=['GET','POST'])
  def postdata():
    #do some
    data = str(request.args)
    json_dumps = json.dumps(data)
    return json_dumps
  </code></pre>
  
  <p>This gives me following data on the page</p>
  
  <pre><code>"ImmutableMultiDict([('{\"name\":\"John Doe\",\"age\":\"21\"}', u'')])"
  </code></pre>
  
  <p>And this is what my <code>request.query_string</code> looks <code>{%22name%22:%22John%20Doe%22,%22age%22:%2221%22}</code></p>
  
  <p>So how do I get the <code>name</code> and <code>age</code>. Please correct me If I am wrong anywhere.Thanks in advance.    </p>