math.huge does not translate well in json.encode