Add JSON encoding for int and float types
I've noticed issues at various times when there are np.integer or np.floating types being written to JSON, this MR will allow those to be saved.
I've noticed issues at various times when there are np.integer or np.floating types being written to JSON, this MR will allow those to be saved.