I know about ScriptIgnoreAttribute.
But what if I want to ignore a property based on criteria.
For example how to ignore a nullable property on serialization only if it’s null and doesn’t contain any value?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best possible answer I have is to make your own JavaScriptConverter and parse the property based on your own condition(s).