title: Unable to post datetime type python
body: <p>I am trying to post an object containing DateTime type using python requests library. The object looks like</p>
  
  <pre class="lang-py prettyprint-override"><code>data_json = {
      'title': str(row[5]),
      'Type': 'type',
      'subtype': 'subtype',
      'uuid': str(uuid.uuid4()),
      'created_at': timestamp,
      'updated_at': timestamp,
      'code': str(row[8]),
      'version': 1,
  }
  </code></pre>
  
  <p>The timestamp=<code>datetime.datetime.now()</code> and <code>data=json.dumps(data_json)</code>
  The post call was like</p>
  
  <blockquote>
    <p>response=requests.post(API_ENDPOINT,headers=header,data=data)</p>
  </blockquote>
  
  <p>This did not work. If I converted timestamp to string using <code>str</code> or <code>strftime</code>, I get an error saying <code>created_at must be datetime type</code>. Similarly with updated_at.
  Desperate to get it working I also used <a href="https://blag.nullteilerfrei.de/2017/10/29/python-post-json-data-containing-a-datetime-object-with-requests-to-flask/" rel="nofollow noreferrer">this</a> solution but to no avail.</p>
  
  <p>Is there any way to get this working?</p>