TypeError: Object of type int64 is not JSON serializable

Numpy integers (sub-dtypes of numpy.integer) will now be silently converted to Python ints, solving this problem. Here’s the PR: feat: Convert numpy integers in `data` to Python int by riddell-stan · Pull Request #327 · stan-dev/pystan · GitHub

1 Like