json-parser: fix handling of large whole number values