How do you pass a JSON object to an MVC action parameters?
- by TimTam
I would like to pass
{"parameter1":true, "parameter2":false, "parameter3":true}
To my action
public JsonResult Action(bool parameter1, bool parameter2, bool parameter3)
{
//...
}
Using JQueries ajax method using the JSON as the data parameter (data: {"parameter1...)
How do I accomplish this, right now my parameters aren't getting recognized on the server side.