How to remove column name in JSON return C#
问题 I have a JSON output below : [ { positionCode: "POS1", positionName: "POSITION 1", positionDescription: "", parentPosition: "POS2", }, { positionCode: "POS2", positionName: "POSITION 2", positionDescription: "", parentPosition: "POS3", } ] This JSON result is from my Web API that looks like this : return new JsonResult(query.Select(x => new { x.PositionCode, x.PositionName , x.PositionDescription , x.ParentPosition }).ToList()); However, my desired output is like this : What things should be