I\'m working on a REST API in ASP.NET MVC where the resulting serialised JSON uses lowercase_underscore for attributes.
From a class Person with string prop
Person
OK, found the solution. I was missing a default constructor for the Person class. Once I did that, the mapping worked when calling the Put method. In fact, I could also remove the FromBody specifier:
Put
public object Put(int id, Person person)