title: Dynamically ignore null values in web api result
body: <p><strong>Using C#</strong></p>
  
  <p>Im using web api method <em>webmethod1</em> to return a list of a POCO class <em>pcl1</em> with 10 members. I also have <em>webmethod2</em> which returns a shortened version of <em>pcl1</em>. By shortened I mean I deliberately populate just 3 members of that class. </p>
  
  <p>Because of large numbers of records returned I would like to slightly improve the performance by ignoring null value members in my POCO class. Of course I could create a 2nd POCO class and in my code loop thorugh thr result and cast it and so on but I thought I'd explore this dunamic Ignore if null option if available. Also I can't use [Ignore if null] attribute on my 10-member POCO class.</p>
  
  <p>So is there a way to dynamically ignore null values when compiling JSON result ?</p>