I'm working with numpy.float32 numbers and they don't go into JSON. What's the right approach to overcome this issue?
import numpy as np
import json
a = np.float32(1)
json.dumps(a)
TypeError: Object of type 'float32' is not JSON serializable