In the example below, how do I not serialize an attribute.
I think I'm looking for the equivalent of the java syntax:
For classes: @JsonIgnoreProperties (ignoreUnknown = true); For attributes: @JsonIgnore for attribute.
public class SomeFakeClass
{
public int ID { get; set; }
public string Text { get; set; }
public decimal Value { get; set; }
}
How to not serialize 1: class, 2: a particular attribute.
Thank you!