C# JSON deserialization: can I intercept the deserialization and optionally change the result?
We've got some JSON that we are deserializing into a strongly-typed object graph in C#. However, we've got one issue: sometimes there is an "empty" value in the JSON (e.g., empty string) in a property that maps to a boolean value in our model. In our case, we know that 100% of the time, we can translate these "blank" values to Boolean false . However, the JSON deserializers I've tried don't know about this (understandably). I've been trying to find a way to intercept the deserialization of each property, and optionally override the output. I.e., if there was an "interceptor" method I could