Off-by-one error in the json interval calculation.