So, I have a JSON object that contains dates where candidates completed their degree. The date formats aren't particularly standardized, and might consist only of the year that they completed their degree. I'm trying to deserialize this JSON using Newtonsoft, and I'm getting the following exception:
Exception reading JSON: Newtonsoft.Json.JsonReaderException: Could not convert string to DateTime: 2003
The exception message is pretty straightfoward: it doesn't recognize strings that consist only of the year as a valid DateTime.
Is there a way that I can fix this (e.g. by having this always deserialize to January 1 of the specified year), or am I stuck just having to make this field a string in my model class?