I do have non ISO compliant date string in incoming JSON.
"Thu, 4 Jun 2020 10:37:43 +0000 (UTC)"
To deserialize it I have to use string
property then later manually cut it and convert to DateTime
.
I deserialize whole JSON by JsonConvert.DeserializeObject<DeserializedClassName>(json)
I can specify ISODateTimeConverter
but this string is not ISO compliant, so I would like to add some kind of annotation for deserializer to process this value before parsing and assigning to property.
Question: Can you add some kind of annotation or hint to the JSON converter to process a given value corresponding to the property before trying to parse it?
Why it's not a duplicate: I am not asking how to parse a Date, I am asking about how to process any data before converter attempts to parse it.