Required to get a list of objects of class Man
public class Man { public int Id { get; set; } public string Firstname { get; set; } public string Secondname { get; set; } public int Age { get; set; } } I send a request to the server
$.ajax({ url: url, type: "POST", data: { "count": count }, dataType: "json" }) In the controller's method, I form an array of objects and send it to the client.
for (int i = 0; i < dif; i++) { mans[i] = await manContext.Mans.FirstOrDefaultAsync(m => m.Id == mansCount - dif + i); } return Json(mans); How can I get the value of the fields of the Man object (name, age, etc.) from JSON using JS?