I can't convert the JSON object below to class in Asp.Net MVC
{
"Name.Test":"fsafasfda"
}
Any suggestions are appreciated.
The scenario is like this in asp.net action:
[HttpPut]
public JsonResult Test(NameRootobject obj)
{
}
the the class was paste JOSN as class:
class NameRootobject
{
public string NameTest{get;set;}
}
But the NameTest
property is null
.
How to resolve this problem?