The sage Vyasa and King Janmejay
Janmejay(Sanskrit: जनमेजय) was a Kuru king who reigned during the Middle Vedic period(12th or 11th century BCE). Along with his predecessor Parikshit, he played a decisive role in the consolidation of the Kuru state, the arrangement of Vedic hymns into collections and the development of the orthodox srauta ritual, transforming the Kuru realm into the dominant political and cultural center of northern Iron Age India. He also appears as an important figure in many later legends and traditions, such as the Mahabharata, where he appears as the listener of the first narration of the great epic(see below).
In Vedic literature
Janmejay is mentioned as a great king and conqueror in a number of late Vedic texts. The Aitareya Brahmana'(VIII.21) informs us that his priest Tura Kavasheya anointed him with the great anointing of Indra and hence his descendants are called Tur. The Shatapatha Brahmana mentions that he performed an ashvamedha(horse sacrifice) at a place named Asandivat and the priest who performed it for him was Indrota Daivapa Shaunaka. Janmejay was a son of King Parikshit and had several brothers: Bhimasena, Ugrasena and Srutasena.
In Post-Vedic Literature
He was the son of King Parikshit and Queen Madravati according to the Mahabharata(I.95.85), but according to the Bhagavata Purana(I.xvi.2), his mother was Iravati, daughter in law of Uttara. He was the grandson of Abhimanyu and the great-grandson of Arjuna, the valiant warrior hero of the Mahabharata. He ascended to the Kuru throne following the death of his father. His significance comes as the listener of the first narration of the Mahabharata, narrated by Vaishampayana, pupil of Vyasa. According to the Vayu Purana and the Matsya Purana, there was a dispute between him and Vaishampayana. Possibly, as its aftermath, he abdicated and his son Satanika succeeded him. According to the Puranas, Janmejay was succeeded by Ashvamedhadatta. Ashvamedhadatta was succeeded by Adhisima Krishna.
In Mahabharata, Janmejaya was mentioned as having six able brothers viz, Kakshasena, Ugrasena, Chitrasena, Indrasena, Sushena and Nakhaysena. The initial chapters of the epic narrates various aspects of his life including his conquest of Takshasila and about his encounter with Naga Takshaka. He wanted to exterminate the race of Nagas, since Takshaka was responsible for the death of his father Parikshit. Emperor Janmejay was responsible for the retelling of the famous epic Mahabharata, a story of Janmejay's ancestors from the time of Bharata up to the great Kurukshetra war between his great grandfathers the Pandavas and their paternal cousins the Kauravas. The Mahabharata states that it was recited to Janmejay at the sarpa satra(snake sacrifice) by the sage Vaishampayana to whom it had been imparted by his perceptor Vedavyasa, after he asked Vaishampayana about his ancestors.
Sarpa Satra(Snake Sacrifice)
Emperor Janmejay ascended to the throne of Hastinapura upon the death of his father Parikshit. According to legend, Parikshit, the lone descendant of the House of Pandu, had died of snakebite. He had been cursed by a sage Shringi(Son of Saint Shameeka) to die so, the curse having been consummated by the serpent-chieftain Takshak.
Janmejay bore a deep grudge against the serpents for this act, and thus decided to wipe them out altogether. He attempted this by performing a great Sarpa satra - a sacrifice that would destroy all living serpents.
At that time, a learned sage named Astika, a boy in age, came and interfered. His mother Manasa was a Naga and father was a Brahmin. Janmejay had to listen to the words of the learned Astika and set Takshaka free. He also stopped the massacre of the Nagas and ended all the enmity with them From then onwards the Nagas and Kurus lived in peace.
The mass sacrifice was started on the banks of the river Arind at Bardan, now Known as Parham, a corrupt form of Parikshitgarh. A masonry tank said to have been built by Emperor Janmejay to mark the site of the sacrificial pit, known as Parikshit Kund, still exists in Mainpuri district. This is known as Gowdvana. Close to this village a very large and high Khera containing the ruins of a fort and some stone sculptures has been found. It is said to date back to the time of Emperor Parikshit. A popular local legend is that as a consequence of the virtues of that sacrifice snakes are still harmless in this place and its neighborhood.
The son of Janmejaya will be Satanika, who will study the Vedas under Yajnyawalkya and military science with Kripa; but becoming dissatisfied with sensual enjoyments, he will acquire spiritual knowledge from the instructions of Saunaka and ultimately obtain salvation. His son will be Aswamedhadatta(a son given by Gods in reward for the sacrifice of a horse 5); his son will be Asima-krishna 6; his son will be Nichakra 7, who will move the capital to Kausambi, in consequence of Hastinapura being washed away by Ganges; his son will be Ushna 8; his son will be Chitraratha; his son will be Vrishnimat 9; his son will be Sushena; his son will be Sunitha 10; his son will be Richa 11; his son will be Nrichakshu 12; his son will be Sukhihala 13; his son will be Pariplava; his son will be Sunaya 14; his son will be Medhavin; his son will be Nripanjaya 15; his son will be Mridu 16; his son will be Tigma 17; his son will be Vrihadratha; his son will be Vasudana 18; and his son will be another Satanika; his son will be Udayana 19; his son will be Ahinara 20; his son will be Khandapani 21; his son will be Niramitra 22; his son will be Kshemaka 23: of him this verse is recited; "The race which gave origin to Brahmans and Kshatriyas and which was purified by regal sages, terminated with Kshemaka; in the Kali age.