I have a complicated json structure. Here it is simplified because it happens with this too:
{
"Id":0,
"Name":"Region Challenge",
"ModifiedOn":"2011-09-08T17:49:22",
"State":"Published",
"Goals":[
{"Id":1,"Description":"some text here","DisplayOrder":1},
{"Id":2,"Description":"some text here","DisplayOrder":2}
]
}
So, when this data is POST'd to controller, I have no problem getting this values for Id, Name, etc. However, Goals is null when I look at the locals window.
The signature is:
public JsonResult Save(int Id, String Name, DateTime ModifiedOn, String State, String Goals)
The POST Headers are:
User-Agent: Fiddler
Host: localhost:2515
Content-Type: application/json
Content-Length: 7336
How do I read in the data so that I can iterate over it?
Thanks! Eric