But then the people of Judah killed all those who had assassinated Amon, and they appointed his son Josiah to be their king.