Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

newtonsoft json conditionally ignore property

public bool ShouldSerializeINSERT_YOUR_PROPERTY_NAME_HERE()
{
    if(someCondition){
        return true;
    }else{
        return false;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #newtonsoft #json #conditionally #ignore #property
ADD COMMENT
Topic
Name
6+2 =