Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

json ignore property c#

public class Account
{
    public string FullName { get; set; }
    public string EmailAddress { get; set; }

    [JsonIgnore]
    public string PasswordHash { get; set; }
}
Source by www.newtonsoft.com #
 
PREVIOUS NEXT
Tagged: #json #ignore #property
ADD COMMENT
Topic
Name
1+2 =