Upvote:2
You certainly have enough time and nothing to worry about if the flight legs are on the same ticket. In case you bought separate tickets to JFK and from JFK, then you'll still probably make it, but in case the first flight is 2+ hours late, then you're very likely to miss the second flight and you're not entitled to a compensation from the airline. In case you have a good travel insurance covering those cases, you might want to take the risk.