title: How to serialize or deserialize a JSON Object to a certain depth in C#?
body: <p>I only want the first depth level of an object (I do not want any children).  I am willing to use any library available.  Most libraries will merely throw an exception when the recursion depth is reached, instead of just ignoring.  If this isn't possible, is there a way to ignore serialization of certain members given a certain datatype?</p>
  
  <p>Edit:
  Let's say I have an object like so:</p>
  
  <pre><code>class MyObject
  {
      String name = "Dan";
      int age = 88;
      List&lt;Children&gt; myChildren = ...(lots of children with lots of grandchildren);
  }
  </code></pre>
  
  <p>I want to remove any children (complex types even) to return an object like this:</p>
  
  <pre><code>class MyObject
  {
      String name = "Dan";
      int age = 88;
      List&lt;Children&gt; myChildren = null;
  }
  </code></pre>