Trying to pass an object to the model list from JQuery in following format, but they appear null in VS's debugger
obj.data.GoUsers = [{ Email: 'r@gmail.com', InvitationStatus: 1 }]
Although if I pass in following format it works, but this format doesnt look feasible to build dynamically. Any thoughts?
for (i = 0; i < 3; i++) {
obj.data["GoUsers[" + i + "].Email"] = "test" + i + "@g.com";
obj.data["GoUsers[" + i + "].InvitationStatus"] = i;
}
GoUsers is the type of list of model.
Public Property GoUsers As List(Of GOUsersModel)
ajax final call
post(obj.url, $.param(obj.data), callback_function)