title: How to get WebAPI to return JSON for SQL query with varying select clause
body: <p>My application features a query builder which allows users to create a SQL query with a varying select clause.  I need the results to be returned in JSON by WebAPI.
  There are a huge number of fields that could feature in the select.<br>
  The only approach I have found is to use:</p>
  
  <pre><code>var results = db.Database.SqlQuery&lt;SomeObjectWhichDefinesAllPossibleFields&gt;(sql);
  return Ok(results);
  </code></pre>
  
  <p>Which relies on me maintaining a SomeObjectWhichDefinesAllPossibleFields class which does as it name suggests.  I would like a more dynamic solution as more fields may be added in the future.</p>
  
  <p>Is there another way to get WebAPI to serialize a SqlQuery with a varying select clause</p>