public string Name{ get; set; }
Hi Team, I'm new to json ignore thing. I went through lot of other solutions for ignore my string property from json. but the thing was, Custom converter is not practical for to my code, because it has lot of properties to read and write.
So we have only these 3 option to ignore property without creating custom converter.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
In case of string, string default value also null. So how can I simply ignore this string property when it has specific value? Btw i need to do this without creating custom converter