return encrypted text in a json object