title: Python Requests - post json
body: <p>POST CODE</p>
  <pre><code>import requests
  
  form = {
      &quot;token&quot;: 123,
      &quot;discordid&quot;: 330421170186879007
  }
  
  data = requests.post('sample/dir', json=form)
  </code></pre>
  <p>Recieve CODE</p>
  <pre><code>@app.route('/dir', methods=['POST'])
  def post():
      Discordid = request.form.get(&quot;discordid&quot;)
      token = request.form.get(&quot;token&quot;)
      cur.execute(&quot;UPDATE table SET Token = (?) WHERE DiscordID = (?);&quot;, (Discordid, token,))
      conn.commit()
      print(token, Discordid)
      return ('', 204)
  </code></pre>
  <p>and I get None and <code>None</code> for the print at the receiving console.</p>
  <p>Why I getting <code>None</code> for the Discordid, token and How can I fix this?</p>