I'm trying to create a WebApi action method with the following signature:
[System.Web.Http.HttpPost]
public object Execute([FromUri] string command, [FromUri] string method, [FromBody] IDictionary<string, JToken> arguments)
However, when I hit this method with requests, arguments never binds correctly (the two URI fields do). The ModelState shows a Json.NET parse error at the first character. I've tried request bodies that look like: id=50
and arguments={ "id": 50 }
. How do I have to formulate my request to allow WebApi to correctly bind my parameters?