Skip to content
Charlotte Skardon edited this page Feb 7, 2023 · 4 revisions

Influencing Serialization

The supplied object instance will be serialized to JSON using the JSON.NET library. If you want to influence this process, you can do so using their attributes:

public class MyNode
{
    [JsonProperty("Bar")]
    public string Foo { get; set; }

    [JsonIgnore]
    public string Bar { get; set; }
}
Clone this wiki locally