According to, Christopher Gerrard, Pam Graves, Andrew Millard, Richard Annis, and Anwen Caffell, Lost Lives, New Voices: Unlocking the Stories of the Scottish Soldiers at the Battle of Dunbar 1650, (England: Oxbow Books, 2018).
On page 250, John is categorized as:
Probable [that he is a Dunbar prisoner transported on the Unity]
Hamilton, John. Residences: Charlestown, Concord MA. B.c.1634. D.1680. Probably from the Unity but a John Hanoman appears on the John & Sara which might be this man. [Exiles; DR; SPOWS; Ch.8]
For explanations of the category, abbreviations and references see List of Dunbar prisoners from Lost lives, New Voices.