He had everyone present in Jerusalem and in Benjamin take their stand on it, and the inhabitants of Jerusalem lived by the covenant of God, the God of their ancestors.
In context
30He went up to the house of Yahweh with every man of Judah, the inhabitants of Jerusalem, the priests and the Levites — all the people, great and small — and he read in their hearing every word of the book of the covenant that had been found in the house of Yahweh. 31The king stood at his post and sealed the covenant before Yahweh: to follow Yahweh, to keep his commandments, his testimonies and his statutes with all his heart and with all his soul, and so to carry out the words of the covenant written in this book. 32He had everyone present in Jerusalem and in Benjamin take their stand on it, and the inhabitants of Jerusalem lived by the covenant of God, the God of their ancestors. 33Josiah swept away every detestable thing from all the territories belonging to the Israelites, and he made everyone in Israel serve Yahweh their God. As long as he lived they did not turn away from following Yahweh, the God of their ancestors.