env is a json string