title: Jackson : Conditional select the fields
body: <pre><code>I have a scenario where i need to use the payload as 
  
  {"authType":"PDS"}
  or
  {"authType":"xyz","authType2":"abc",}
  or
  {"authType":"xyz","authType2":"abc","authType3":"123"}
  or
  any combination except for null values.
  </code></pre>
  
  <p>referring to the code i have 3 fields but only not null value fields be used. 
      Basically i don't want to include the field which has null value.</p>
  
  <p>Are there any annotations to be used to get it done </p>
  
  <pre><code>public  class AuthJSONRequest {
  
      private String authType;
      private String authType2;
      private String authType3;
  
      public String getAuthType() {
          return authType;
      }
  
      public void setAuthType(String authType) {
          this.authType = authType;
      }
  
      public String getAuthType2() {
          return authType2;
      }
  
      public void setAuthType2(String authType2) {
          this.authType2 = authType2;
      }
          public String getAuthType3() {
          return authType3;
      }
  
      public void setAuthType3(String authType3) {
          this.authType3 = authType3;
      }
  
  }
  </code></pre>