Python – TypeError: Object of type ‘int64’ is not JSON serializable

json does not recognize NumPy data types. Convert the number to a Python int before serializing the object:

'count__c': int(store['count'].iloc[i])

Leave a Comment