title: Serialize List<LinkedListNode<object>> using Json.net
body: <p>example of code with string also throws exception: </p>
  
  <pre><code>LinkedList&lt;string&gt; l = new LinkedList&lt;string&gt;();
          l.AddLast("Kuku");
          l.AddLast("Riku");
          l.AddLast("Ok");
          List&lt;LinkedListNode&lt;string&gt;&gt; lst = new List&lt;LinkedListNode&lt;string&gt;&gt;();
          lst.Add(l.First);
          lst.Add(l.First.Next);
          lst.Add(l.Last);
  
          string json = JsonConvert.SerializeObject(lst, Formatting.Indented,
         new JsonSerializerSettings
         {
             ReferenceLoopHandling = ReferenceLoopHandling.Serialize
         });
          File.WriteAllText(@"C:\Student Routine\Data.txt", json);`
  </code></pre>
  
  <p>I can not serialize <code>List&lt;LinkedListNode&lt;object&gt;&gt;</code> due to a self-referral error, using Json.net. </p>
  
  <p>the error:Self referencing loop detected for property 'Previous' with type 'System.Collections.Generic.LinkedListNode`1[Calendar_Module.ScheduleEvent]'. Path '[0].UserData.Calendar.Days.2017-04-02T00:00:00[0].Next.Next.Next.Next.Next.Next'.</p>
  
  <p>please help</p>