Over a period of time Israel, the Northern kingdom had 19 evil kings and Judah the Southern kingdom had kings when compared to Israel were somewhat better. Josiah began to reigned when he was 8 yrs old and his reign lasted 31 years. And he did that which was right in the sight of the Lord, and walked in all the way of David his father, and turned not aside to the right hand or to the left. (2Kings 22:2)
The temple in Jerusalem was destroyed and in the course of getting the temple back in order, Hilkiah the high priest found the book of the law which he turned over to the scribe Shaphan who read it to the king. When the king heard the words, he rent his clothes. (2Kings 22:11)
The king then instructed him to go and inquire of the Lord. There wasn’t a discussion about who to see, they knew exactly who would tell them the truth of God’s word. Prophetess Huldah a spokeswoman for God.
(2Kings 22:14-20)14 So Hilkiah the priest, and Ahikam, and Achbor, and Shaphan, and Asahiah, went unto Huldah the prophetess, the wife of Shallum the son of Tikvah, the son of Harhas, keeper of the wardrobe; (now she dwelt in Jerusalem in the college;) and they communed with her.
15 And she said unto them, Thus saith the Lord God of Israel, Tell the man that sent you to me,
16 Thus saith the Lord, Behold, I will bring evil upon this place, and upon the inhabitants thereof, even all the words of the book which the king of Judah hath read:
17 Because they have forsaken me, and have burned incense unto other gods, that they might provoke me to anger with all the works of their hands; therefore my wrath shall be kindled against this place, and shall not be quenched.
18 But to the king of Judah which sent you to enquire of the Lord, thus shall ye say to him, Thus saith the Lord God of Israel, As touching the words which thou hast heard;
19 Because thine heart was tender, and thou hast humbled thyself before the Lord, when thou heardest what I spake against this place, and against the inhabitants thereof, that they should become a desolation and a curse, and hast rent thy clothes, and wept before me; I also have heard thee, saith the Lord.
20 Behold therefore, I will gather thee unto thy fathers, and thou shalt be gathered into thy grave in peace; and thine eyes shall not see all the evil which I will bring upon this place. And they brought the king word again.
Then the king brought all the people together and publicly made a covenant before the Lord to walk after the Lord and keep his commandments. King Josiah took action to clean out the temple and rid the nation of its sinful ways. Read more in 2Kings 23:4-15, 24.
25 And like unto him was there no king before him, that turned to the Lord with all his heart, and with all his soul, and with all his might, according to all the law of Moses; neither after him arose there any like him. (2Kings 23:25)
Huldah was very clear with her message that the nation was headed for destruction. He that hath ears to hear, let him hear (Matthew 11:15). Also, take action for the word says, But be ye doers of the word, and not hearers only, deceiving your own selves James 1:22. King Josiah was a doer and he had someone like Huldah, a prophetess, a spokeswoman for God, who he could count on to tell him the truth of God’s word.