TypeError: Object of type 'float32' is not JSON serializable : <p>I'm working with <code>numpy.float32</code> numbers and they don't go into <code>JSON</code>. What's the right approach to overcome this issue?   </p>

<pre><code>import numpy as np
import json

a = np.float32(1)
json.dumps(a)

TypeError: Object of type 'float32' is not JSON serializable
</code></pre>
