json unmarshalling for input files, test key gen