“TypeError: (Integer) is not JSON serializable” when serializing JSON in Python? [duplicate] October 19, 2022 by Tarik I found my problem. The issue was that my integers were actually type numpy.int64.