The other guys have a good point. It's hard to imagine a Jeep with the body "rusted to heck" but a good frame. Go over it extremely carefully. Look at all the welded places. Most welds are lap - one piece of steel laid over another, and then welded at the edge. Rust takes over between the two pieces, and shows itself as a bulge, because rust is bigger than the steel it came from. Unfortunately in some places the thinner piece of steel is inside the frame tube, so the bulge is inside where you can't see it. But look anyway.
A rusted frame is not ruined, but repairing it can be a fair amount of work. The attached picture is from the back of my '78 frame. The outer tube is a temporary patch. At the bottom of the original frame tube there is severe damage. The inner piece of steel is thinner than the outer. The rust between them bent the inner piece up severely. The damage was almost invisible from the outside, and yet the joint was completely destroyed, and there was very little strength left.
A rusted frame is not ruined, but repairing it can be a fair amount of work. The attached picture is from the back of my '78 frame. The outer tube is a temporary patch. At the bottom of the original frame tube there is severe damage. The inner piece of steel is thinner than the outer. The rust between them bent the inner piece up severely. The damage was almost invisible from the outside, and yet the joint was completely destroyed, and there was very little strength left.