title: prevent property from being serialized in web API
body: <p>I'm using an MVC 4 web API and asp.net web forms 4.0 to build a rest API. It's working great:</p>
  
  <pre><code>[HttpGet]
  public HttpResponseMessage Me(string hash)
  {
      HttpResponseMessage httpResponseMessage;
      List&lt;Something&gt; somethings = ...
  
      httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, 
                                   new { result = true, somethings = somethings });
  
      return httpResponseMessage;
  }
  </code></pre>
  
  <p>Now I need to prevent some properties to be serialized. I know I can use some LINQ over the list and get only the properties I need, and generally it's a good approach, but in the present scenario the <code>something</code> object is too complex, and I need a different set of properties in different methods, so it's easier to mark, at runtime, each property to be ignored.</p>
  
  <p>Is there a way to do that?</p>