For the code below
type MyConverter =
inherit JsonConverter<Datetime>()
.....
type MyType = {
[<JsonConverter(typeof<MyConverter>)>]
date: DateTime
}
JsonSerializer.Deserialize("{\"date\": \"2020-10-20\"}", typeof<MyType>)
converter is not invoked. It gets invoked for the entire type if the attribute will be moved there, but not for the field.
Is this by design? Any chance to specify the converter for an exact field?