Convert empty strings to null with Json.Net
<p>I'm having trouble finding a way to automatically <strong>deserialize</strong> (server side) all <code>EmptyOrWhiteSpace</code> strings to <code>null</code> . Json.Net by default simply assigns the value to the object property, and I need to verify string by string whether it is empty or white space, and then set it to null.</p>

<p>I need this to be done upon deserialization, so I don't have to remember to verify every single string that comes from the client.</p>

<p>How can I override this on Json Net?</p>