title: Web API method return JSON data
body: <p>I am using ASP.net web API 2.0 and would like my method to return the data in JSON format only.</p>
  
  <p>Please suggest the code changes for this below method from the API controller class.</p>
  
  <pre><code>public async Task&lt;List&lt;Partner&gt;&gt; GetPartnerList()
  {
      return await _context.Partners.Take(100).ToListAsync();
  }
  </code></pre>