Answer
John was the son of Dom Peter III. Dom Peter III, also known as Pedro III of Aragon, was the King of Aragon and King of Valencia, Count of Barcelona, and Lord of Montpellier from 1276 to his death in 1285. He was a member of the House of Aragon and the son of James I of Aragon and his second wife, Constance of Hohenstaufen.