How to get the value of the dynamic object? i post the screenshot of the sample data. I'm new to c# and have no idea on object in c#.
[HttpPost]
[Route("api/TCSAPI/SaveTCS")]
public HttpResponseMessage SaveTCS(dynamic tcsObject)
{
var track = tcsObject.GetType().GetProperty("track").GetValue(tcsObject, null);
return Helper.ComposeResponse(HttpStatusCode.OK, string.Empty);
}
Update: javascript console. this is the data i sent to the API
Update: i can now get the type as what Abion47 told and it is a JObject. how to get the data of this object?