title: Optimizing JaxRS/Jackson to exclude nulls, empty Lists, arrays
body: <p>We're using JaxRS &amp; Jackson to send data to our client.  Since the client is Javascript, we don't really need to send null values or empty arrays if there isn't a valid value for that property (which JaxRS does by default).  Is there a way around this?</p>
  
  <p>An example. JaxRS sends this:</p>
  
  <p><code>
  {"prop1":[],"prop2":null,"prop3":"foo"}
  </code></p>
  
  <p>where we could have gotten away with </p>
  
  <p><code>
  {"prop3":"foo"}
  </code></p>