Return JsonResult from web api without its properties
问题 I have a Web API controller and from there I'm returning an object as JSON from an action. I'm doing that like this: public ActionResult GetAllNotificationSettings() { var result = new List<ListItems>(); // Filling the list with data here... // Then I return the list return new JsonResult { Data = result }; } But this way the JsonResult object including its Data attribute is serialized as JSON. So my final JSON that is return by the action looks like this: { "ContentEncoding": null,