Move int parsing into parse_util, have the json parser use it directly