Put the needed parameters in a json string.