title: JSON serialization with class inherited from List<T>
body: <p>I have a class that inherits from <code>List&lt;T&gt;</code> and add one more class property</p>
  
  <pre><code>public class DrivenList : List&lt;int&gt;
  {
      public string Name {get;set;}
  
      private DrivenList() { }
  
      public DrivenList(string name) { this.Nname = name; }
  }
  </code></pre>
  
  <p>When JSON serializing the object using Newtonsoft.Json, I get only the list item. ( [1,2,3] )</p>
  
  <p>Any ideas how to add the <code>Name</code> property to the results?</p>
  
  <p>Solved: by adding this attribute to the list</p>
  
  <pre><code>[JsonObject(MemberSerialization = MemberSerialization.Fields)]
  public class DrivenList : List&lt;int&gt;
  </code></pre>