This sample uses the T:Newtonsoft.Json.JsonIgnoreAttribute to exclude a property from serialization.
Sample