Karala Janaka
Karala Janaka was one of the kings during the periods of Janaka Dynasty in the kingdom of Mithila. Most of scholars has accepted King Karala Janaka as the last King in the Janaka Dynasty of the Mithila Kingdom. According to the available literary texts related to Mithila, it is evident that there may be two different kings with the same name Karala Janaka in different periods of time in the ancient Mithila Kingdom. The one which is mentioned in Shanti Parva of Mahabharata and the other as the last King in the Janaka lineage mentioned in the Arthshastra of Chanakya.
Description in Mahabharata
In the Shanti Parva of Mahābhārata, there is a philosophical dialogue between Guru Vashishtha and King Karala Janaka known as Vashishtha Karala Janaka Samvad. The dialogue is about the teaching of Shamkhya philosophy to the king Karala Janaka by the Vedic sage Brahmarshi Vashishtha. It describes the Twenty five tattvas. These tattvas are described with slight difference from the Sāṃkhya philosophy. Shanti Parva describes twenty five tattvas in five Sargas called Vidya Sarga, Avidya Sarga, Bhutasarga, Vaikrtasarga and Bhautika Sarga.Concept of Purusha and Prakriti
Once King Karala Janaka was confused in understanding the meaning of Purusha and Prakriti in Shamkhya philosophy. He mistakenly understood "Purusha" as man and "Prakriti" as woman. He told Guru Vashishtha that the relationship between Purusha and Prakriti is same as the reproductive relation between male and female. Male and female of all the creatures unite to reproduce. He further said that father contributes bone, sinews and marrow, and mother contributes blood, skin and flesh to their children. But this was a false analogy. Then Guru Vashishtha replied to the king that you had understood the superficial meaning of the texts not the real meaning. He further clarified the real meaning of the texts. He told that all the parts of the body including skin, blood, flesh, bones, and sinews etc come from Prakriti not from Purusha.Guru Vashishtha further quoted "Matter can arise from matter only not from spirit. But Prakriti itself is sexless and genderless, though the things that arise from it acquire sex and gender".