Exclude null value
Brought to you by:
charliehubbard
in my scenario my object has a lot of null value that I do not want them to be serialized to JSON so that network traffic could be minimized.
Flexjson doesn't seem to have any kind of configuration exclude the excludes list. One of the ways to implement the exclusion is to use a system property.
JSONSerializer
Before line 575, add
if ( !(Boolean.getBoolean("flexjson.excludeNullValue")
&& value==null ){
After line 578, add
}