I have a json string which is submitted on controller using Model string value property. I want to convert this json string into c# generic list object.
Below is my json string
{
"MLIDandRackPosition": [
{
"MLID": "27",
"PositionInRack": "3"
},
{
"MLID": "24",
"PositionInRack": "4"
}
]
}
Below is my class
public class MLIDandRackPosition
{
public int MLID { get; set; }
public int PositionInRack { get; set; }
}
I want a List of MLIDandRackPosition class from json string on controller action method.
Please help