Return a json object with a message attribute as the api response.