TypeError: l'objet de type UInt32 n'est pas JSON Serializable

# It seems like there may be a issue to dump numpy.int64 into json string in Python 3.
# the generic solution: 

def convert(o):
    if isinstance(o, np.generic): return o.item()  
    raise TypeError

json.dumps({'value': numpy.int64(42)}, default=convert)
Real Ratel