The frame from an early CJ5 will easily work under a flatty body. The frame rails themselves are identical with the exception of an extra 2-1/2" of length on the front horns, and 3" extra on rear. Crossmembers, spring hangers, and shock mounts are located a little differently, and the front crossmember is rectangular instead of round. Body mount brackets (those that weren't omitted at the factory) are in the same place.
The only downside I see to using a 5's frame under a flatty is the extra length. It may not be obvious in the front, but having the rear crossmember sticking out 3" just isn't right. and you'd lose the rear body mount locations.
I started to modify a V6 CJ5 frame to a 3's dimensions when I found bigger issues with 5 (paper thin in spots). Have since repaired the 3A frame and have it at the sandblaster now.