json generator separate .hpp and .cpp