Per say I have an complex object like below as my rest response to the request
public class emp {
     int Id;
     String Name;
     Address address;
 }
 public Class address {
    String StreetAdress1;
    StreetAdress2;
    String AptNO;
    String Zip;
    String State;
    String Country;
  }
I just wanted to ignore nulls in class emp and Address.
My question is if I use JsonInclude on emp class would that help discarding the null in address class while sending back as an json response.
I haven't tried it yet , just had a question in my mind and wanted to ask if that would work.
How to work with Complex Json
 
    