title: Linq list of objects to json
body: <p>My goal is to make a linq query and convert it to a Json in order to return it from an Api.</p>
  
  <p><strong>Query:</strong></p>
  
  <pre><code>var results = _context.User.ToList();
  </code></pre>
  
  <p>This List has multiple Users with multiple attributes e.g. username, first name, last name, but I don't get how to return them as a json...</p>
  
  <p>I need to have to <strong>convert them to json objects</strong>.</p>
  
  <pre><code>return Json(results, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <hr />
  
  <h2>Edit</h2>
  
  <p>Everytime I run the code I get an circular reference exception?</p>