title: Flask request.form.to_dict()
body: <p>I'm facing a problem. I developed an API in Flask.
  I use <strong>python-requests</strong> to send <strong>POST</strong> requests (with dictionaries) to my API.
  Below, an example of how I sent requests.</p>
  <pre class="lang-py prettyprint-override"><code>import requests
  
  data=dict()
  data['a'] = &quot;foo&quot;
  data['b'] = &quot;bar&quot;
  data['ninja'] = {&quot;Name&quot;: &quot;John doe&quot;}
  
  r = requests.post(&quot;https://my_own_url.io/&quot;, data=data, headers={&quot;content-type&quot; : 'application/x-www-form-urlencoded'}, verify=False)
  </code></pre>
  <hr />
  <p>On the back-end of my flask application, I can received the request :</p>
  <pre class="lang-py prettyprint-override"><code>from flask import Flask, request
  
  @app.route(&quot;/&quot;, methods=['POST'])
  def home():
      content = request.form.to_dict()
  
  if __name__ == &quot;__main__&quot;:
      app.run()
  </code></pre>
  <p>Here is my problem, I send a python dictionary :</p>
  <blockquote>
  <p>{'a' : &quot;foo&quot;, 'b' : &quot;bar&quot;, 'ninja':{'Name': &quot;John Doe&quot;}}</p>
  </blockquote>
  <p>But I can only recover :</p>
  <blockquote>
  <p>{'a' : &quot;foo&quot;, 'b' : &quot;bar&quot;, 'ninja':'Name'}
  Here <strong>ninja</strong> haven't the right value.</p>
  </blockquote>
  <p>Do you know the right way to aim this ? :)</p>