title: How to prevent null values inside a Map and null fields inside a bean from getting serialized through Jackson
body: <p>I have a a <code>Map&lt;String,Foo&gt; foosMap</code> that I want to serialize through Jackson . Now I want following two settings on the serialization process:</p>
  
  <ol>
  <li>The Map can have  have plenty of null values and null keys and I don't want nulls to be serialized.</li>
  <li>For all those Foos that are getting serialized, I do not want to serialize null objects referenced inside Foo.</li>
  </ol>
  
  <p>What is the best way to achieve this ? I am using jackson-core1.9 and jackson-mapper1.9  jars in my project. </p>