We have ASP.NET Core application which we use as a REST api. Methods use [FromBody]MyClass param
as input. Problem is if the client sends an invalid JSON string the input
value becomes null due to JSON serialization errors. Is there a way to log such errors?
Edit: I'm looking for application-wide solution not per-method..