Im using JSON to post data from a form and ModelState.isValid() returning false, i put a WriteLine for all incoming data and everything looks fine data wise, is there a way to d
To get a list of errors in the model state:
var errors = ModelState
.Where(x => x.Value.Errors.Count > 0)
.Select(x => new { x.Key, x.Value.Errors })
.ToArray();
Then put a break point on this line and inspect the errors
variable. It will give you a list of properties on your model with their respective errors.