If Jon lives (and I believe he does), it’s probably because he is brought back to life by Melisandre, the Red Woman.
Beric Dondarrion was resurrected by Thoros of Myr, a Red Priest of R’hllor, the Lord of Light. Melisandre is also a priestess of the Lord of Light, and presumably, has the same power to resurrect that Thoros has.