Many here have heard that many/most famous Bible tales are in fact merely local versions of often repeated pagan myths with a twist. The Jonah story is a classic.
The story is familiar to all, the Joppa setting, the stormy sea and boat, the swallowing by a whale/fish, reappearance after 3 days. The tale is told in various forms by ancient peoples thruout the near and far east, cultures that often shared theological ideas thru migration and trade. Greece, Persia, India, Phoenicia, etc.
IMO the best parallel is found in the Hercules story. He in the story is swallowed by a whale/fish, the setting is Joppa, he reappears after 3 days.
Why would such a story have wide appeal to these various cultures? The mystery is in the symbolism.
In ancient myths the stories were quite often reinactments of solar or astrological phenomena. In many mediterranean cults the sun was personified as a hero or god that overcomes adversity thru violence or efforts to bury or cover him. This symbolized the sun's struggle daily against the darkness or the seasonal rebirth from winter.
In the ancient world winter solstice was percieved as a perilous time. The life giving Sun had to fight the forces of darkness to return. During the winter solstice (Dec 22-25) 3 days pass when no movement in the suns celestial progress is observable with naked eye and this is the time of it's lowest appearance to the horizen( the earth, abyss). This is why the number three figures so large in numerous mythologies.
The enemy of the sun was often figured as the sea or earth as it was there that the sun returned when tired.(horizen).
This explains why various solar deities were illustrated as fish/men ascending from the sea. Dagon of OT fame is a fine example. In some illustations of dagon he is seen as a fish/man hybrid ascending from the sea, in others, as coming forth from the mouth of a fish.
Interestingly the name Jonah is Persian ( a culture that greately influence Jewish cult and thought) for "sun". Other languages of Europe and the Mediterranean have similar etymology.
Jonah story bears all the marks of a Jewish form of the family of myths from cultures that worshipped the sun. The Bible itself speaks of the Jews bowing to the sun. Later editors and trusties of the Jewish cult removed the most offensive parts of the ancient Jewish stories and/or overlaid them with literalism to conceal their original meaning.