title: Serialize only interface properties to JSON with Json.net
body: <p>With a simple class/interface like this </p>
  
  <pre><code>public interface IThing
  {
      string Name { get; set; }
  }
  
  public class Thing : IThing
  {
      public int Id { get; set; }
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>How can I get the JSON string with only the "Name" property (only the properties of the underlying interface) ?</p>
  
  <p>Actually, when i make that :</p>
  
  <pre><code>var serialized = JsonConvert.SerializeObject((IThing)theObjToSerialize, Formatting.Indented);
  Console.WriteLine(serialized);
  </code></pre>
  
  <p>I get the full object as JSON (Id + Name);</p>