This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Vayel
Recipients Vayel
Date 2018-06-27.10:26:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530095174.89.0.56676864532.issue33979@psf.upfronthosting.co.za>
In-reply-to
Content
When we call `json.dumps` on a non JSON serializable object, we obtain an error:

```
TypeError: 4 is not JSON serializable
```

Here, 4 was actually a `numpy.int64` object and not a native int. But it is not explicit in the error message. We should mention the type of the object as well:

```
TypeError: 4 of type numpy.int64 is not JSON serializable
```
History
Date User Action Args
2018-06-27 10:26:14Vayelsetrecipients: + Vayel
2018-06-27 10:26:14Vayelsetmessageid: <1530095174.89.0.56676864532.issue33979@psf.upfronthosting.co.za>
2018-06-27 10:26:14Vayellinkissue33979 messages
2018-06-27 10:26:14Vayelcreate