newtonsoft json conditionally ignore property

Code Example - newtonsoft json conditionally ignore property

                
                        public bool ShouldSerializeINSERT_YOUR_PROPERTY_NAME_HERE()
{
    if(someCondition){
        return true;
    }else{
        return false;
    }
}