Context
My class has many properties, and I would like to serialize only a few of them. I am aware that I can control this via [JsonIgnore] attribute.
Question
Is there any way to ignore all properties except what I annotate with [JsonProperty]?
Above class:
[JsonObject(MemberSerialization.OptIn)]
Above any property you want to serialize:
[JsonProperty]
Check this link for further information.