generate random key as json