I’m not sure if this is what you’re after, but from what I understand you’re looking for the [JsonIgnore]
attribute. Stops properties from being serialized with the rest of the object into to JSON.
[JsonIgnore]
public string Whatever{ get; set; }
I’m not sure if this is what you’re after, but from what I understand you’re looking for the [JsonIgnore]
attribute. Stops properties from being serialized with the rest of the object into to JSON.
[JsonIgnore]
public string Whatever{ get; set; }