title: Decode JSON in flask
body: <p>i want to send JSON format data in my flask app using AJAX call,
  when i send it i got "None" in flask.</p>
  
  <p>here is jquery,</p>
  
  <pre><code>$('#form').on('click',function(){
    var text = $('#textField').val();
    var obj = {name:text};
    var myJSON = JSON.stringify(obj);
    $.ajax({
      data : myJSON,
      url: '/process',
      type : 'post',
      contentType: 'application/json',
      dataType : 'json'
    })
  })
  </code></pre>
  
  <p>here is my Flask route,</p>
  
  <pre><code>@app.route('/process',methods=["POST"])
  def process():
      data = request.json
      return render_template("form.html",data = data)
  </code></pre>
  
  <p>in data i got "None".</p>