title: JSON.Net Self referencing loop detected
body: <p>I have a mssql database for my website within 4 tables.</p>
  
  <p>When I use this:</p>
  
  <pre><code>public static string GetAllEventsForJSON()
  {
      using (CyberDBDataContext db = new CyberDBDataContext())
      {
          return JsonConvert.SerializeObject((from a in db.Events where a.Active select a).ToList(), new JavaScriptDateTimeConverter());
      }
  }
  </code></pre>
  
  <p>The code results in the following error:</p>
  
  <blockquote>
    <p>Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'CyberUser' with type 'DAL.CyberUser'.
    Path '[0].EventRegistrations[0].CyberUser.UserLogs[0]'.</p>
  </blockquote>