I know of [JsonIgnore]
which ignores properties altogether, I know of ShouldSerializePropertyName
which gives conditional serialization, but I cannot find anything to mark property to be serialized into JSON normally, but not set during deserialization.
I could write a workaround:
[JsonIgnore]
public string MyValue{get;set;}
public string MyValueForJson {get{return MyValue;}
but it is a last resort. Is there some way - other than custom converters etc. - to express that I don't want that field to be populated during deserialization?