 He grew up at Kristiansand in Vest-Agder.He was a son of engineer and architect Georg Daniel Barth Johnson (1794-1872).He studied theology at the University of Christiania (now University of Oslo) and graduated in 1845.