You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<input>", line 4, in <module>
mjson.encode(np.float64(1.0))
TypeError: Encoding objects of type numpy.float64 is unsupported
This seems like quite a common use case given the popularity of numpy, and to me it seems there are fairly obvious target data JSON types in most situations.
OTOH I appreciate that this can be done via extensions and that trying to support every third party library under the sun is like painting the Forth Bridge.
The text was updated successfully, but these errors were encountered:
Description
Hi,
Would there be any interest in adding support for numpy datatypes? Currently, attempting to encode these fails:
This seems like quite a common use case given the popularity of numpy, and to me it seems there are fairly obvious target data JSON types in most situations.
OTOH I appreciate that this can be done via extensions and that trying to support every third party library under the sun is like painting the Forth Bridge.
The text was updated successfully, but these errors were encountered: