The godly in Judah may have regarded Josiah as the most likely candidate to fulfill the promises God had given to David. His early life and reign were spiritually exemplary (vv. 2-3). He sought to purge idolatry from the whole territory of Israel as well as Judah (vv. 4-7). Many of the Simeonites (v. 6) had allied themselves with Israel religiously (cf. 15:9).93
In Jerusalem, Josiah embarked on a renovation of the temple because Manasseh and Amon had abused it (vv. 8-13). The "book of the law"that Hilkiah found (v. 14) may have been the Book of Deuteronomy,94another portion of the Pentateuch, or the whole Pentateuch.
It may be hard for us to understand how the people could have lost the Law of Moses and how they could have forgotten it in just two generations. However written copies were scarce. Moreover parents and the Levites conducted most instruction orally (17:9). Only one generation separated the people from ignorance of God's will (cf. Deut. 6:6-7; 17:18). This has been true throughout history. Josiah's response to the reading of Torah (the Law) shows his heart to please God (vv. 19, 27).
Huldah announced that God had decreed captivity for Judah (v. 25). Nevertheless Josiah would experience mercy because of his tender heart and humility (v. 27). He would die before Judah went into captivity (v. 28).95
The announcement of God's coming judgment led the king and the nation to commit themselves anew to follow God's Word (vv. 29-33). Perhaps He would postpone captivity.
Note that the temple had been the protector of the Law (v. 14) as it had earlier protected David's heir, Joash (22:10-12). It had preserved the two foundational elements in Israel's life: God's Word and God's vice-regent. As I mentioned before, the temple represented God. The preservation of these two essential elements was an act of Israel's faithful God. Concern for the things of God resulted in the discovery of God's will.