json: allow endptr to be NULL.