title: How do you get GSON to omit null or empty objects and empty arrays and lists?
body: <p>I am using Gson and I am in a situation in which I have to shrink the size of certain Json strings.  I would like to do so by getting it to not put null objects, only empty values, and empty lists and arrays into the Json string.</p>
  
  <p>Is there a straightforward way to do that?</p>
  
  <p>Let me clarify a bit:  I want everything that says:  emptyProp:{} or emptyArray:[] to be skipped.  I want any object that only contains properties that are empty to be skipped.</p>