I understood that this Bind attribute was not necessary, but JSON type is not binding without it. What am I missing here? I am running RC1.
Edit:
this is supposed to work:
public JsonResult Index(Person person)
{
do something with person.
}
But it won't work for some controller actions unless I do this:
public JsonResult Index([Bind(Prefix="")]Person person)
{
}
The first object is void.
jQuery Ajax:
$.ajax({
type: "POST",
url: "/Index/Person",
data: { PersonID: personID, Name: name },
dataType: "json",
success: function(data) {..}
}
}
});