I\'m creating a web service using Web API. I implemented a simple class
public class ActivityResult { public String code; public int indexValue;
In the HTTP request you need to set Content-Type to: Content-Type: application/json
Content-Type: application/json
So if you're using fiddler client add Content-Type: application/json to the request header