I want to exclude properties from bean to json using json-lib at runtime.
How can i do it?
I have tried using propertyFilter of jsonconfig, I am not sure if its at runtime.
How to exclude properties from bean to json at runtime
3.7k views Asked by sarah At
1
Here's a code-snippet based on the sample code at Filtering Properties in JSON Advanced Features that might be useful.
You could set a different function to the JSON Config before you serialize the bean into a JSON object... in case that's what you meant by run time.