How to prevent a single object property from being converted to a DateTime when it is a string
问题 Here is a simplified version of the model I have to work with: class InputModel { public string Name { get; set; } public object Value { get; set; } } And the relevant parts of the controller: class Controller : ApiController { [HttpPut] public async Task<IHttpActionResult> Update([FromBody]InputModel model) { //implementation } } the Value property of the InputModel class could be of any type, and which type it will be is only known later on, in a piece of legacy code the model is sent to