ASP.Net MVC 3 - JSON Model binding to array
I am on ASP.Net MVC 3, and going by the feature list supported in at, i should be able to get default json model binding working out of the box. However i havent been successful in binding an array/collection from json to the action method parameter. Although I did get simple json object binding working right. Would greatly appreciate if an expert here could tell me what i am doing wrong. Here is the code: Server side code first: //Action Method public JsonResult SaveDiscount(IList<Discount> discounts) { foreach(var discount in discounts) { .... } } //View model public class Discount { string