But then the people of the land killed everyone who had plotted against King Amon, and they chose his son Josiah king to succeed him.