He did what was right in the eyes of Yahweh, walking in the ways of his forefather David without swerving to the right or to the left.
In context
1Josiah was eight years old when he became king, and he reigned thirty-one years in Jerusalem. 2He did what was right in the eyes of Yahweh, walking in the ways of his forefather David without swerving to the right or to the left. 3It was in the eighth year of his reign, when he was still a boy, that he began to seek the God of his forefather David; and in the twelfth year he set about clearing Judah and Jerusalem of the high places, the Asherah poles, the carved images and the cast idols. 4In his presence they pulled down the altars of the Baals, and he cut to pieces the incense stands that stood above them. The Asherah poles, the carved images and the cast idols he shattered and ground to dust, and he scattered it over the graves of those who had sacrificed to them.