Force JSON values to integer, closes #735