Updated on Kisan Patel
This sample uses the JsonIgnoreAttribute
to exclude a property from serialization.
public class Account { public string FullName { get; set; } public string EmailAddress { get; set; } [JsonIgnore] public string PasswordHash { get; set; } }