I have several properties with getter and setter method in one action class.
Those properties do not perform the same task. Actually, they respond to different busin
Struts2-JSON plugin allows you to exclude null properties
<result type="json">
<param name="excludeNullProperties">true</param>
</result>
or exclude certain parameters from being serialized
<result type="json">
<param name="excludeProperties">
login.password,
studentList.*\.sin
</param>
</result>
See documentation for more details