in my c# action method
public void ProcessArray(string jsonArray){
//code here
}
The jsonArray
parameter receives the string object in the following format:
[{\"studentid\":6968,\"enrolled\":false},{\"studentid\":6970,\"enrolled\":true},{\"studentid\":6972,\"enrolled\":false} ]
but how do i convert the above json string array to C# object array?
update: here is the full signature of the action method:
pubic json ProcessData(int id, int deptid, int teachId, string studentEnrollmentsArr, string userNotes){
}
i dont want to put all the above parameters to a model i want to pass them as paramters.
thanks