title: TypeError: array(41.751585948319004) is not JSON serializable
body: <p>My code is :</p>
  
  <pre><code>url = 'http://localhost:8000/blog/api/v1/entry/'
  headers = {'content-type': 'application/json'}
  
  f = np.squeeze(np.asarray(variables_t0[2]))
  payload = {"pub_date": 'a', "Intensity": f}
  r = requests.post(url, data=json.dumps(payload), headers=headers)
  </code></pre>
  
  <p>And I have this error:</p>
  
  <p><code>TypeError: array(41.751585948319004) is not JSON serializable</code></p>
  
  <p>Do you know how to convert an array to a json type ?</p>