A warning is very important, even in MVC3, about how MVC3 works.
If you pass an object, for example:
{
Test: 'Hi'
}
And the host class:
public class MyModel
{
public string Test { get; set; }
}
Using a receive controller, for example:
[HttpPost]
public JsonResult Submit(MyModel model)
{
. . .
. , , :
[HttpPost]
public JsonResult Submit(MyModel test)
{
. . .
. , MVC JSON , , , , , ( "" / "" ). "", Test, "test", , .
, , , MyModel, , , , . , ( , / ). null , , .
, , , MVC... , - .
(, ..), , , - , , ---a-property-name, :
[HttpPost]
public JsonResult Submit(MyModel _$_$twinkleTwinkleLittleFuckIt)
{
, ModelBinder/JsonValueProviderFactory, 0 , .