Move JSON handling to the Manifest class