use marshalling for creating secret json