title: How to parse JSON child nodes as an array using json.net?
body: <p>I feel like this question must have been asked before, but maybe I don't know the terminology for what I'm describing here.</p>
  <p>I'm stuck using a web service that returns JSON in which things you would normally expect to be arrays are instead children with names you cannot know ahead of time. For example, instead of this:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;orders&quot;: [
      { ... },
      { ... },
      { ... }
    ]
  }
  </code></pre>
  <p>It gives me this:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;orders&quot;: {
      &quot;order-42&quot;: { ... },
      &quot;order-51&quot;: { ... },
      &quot;order-102&quot;: { ... }
    }
  }
  </code></pre>
  <p>I could parse the document as a <code>JToken</code> and grab the children of <code>&quot;orders&quot;</code>, but then I have the same problem again with the children of the order. For example, instead of the order property <code>&quot;lines&quot;</code> being an array, it has children named <code>&quot;1&quot;</code>, <code>&quot;2&quot;</code>, etc.</p>
  <p>To make matters worse, in some cases the names of the children contain information I need that seems like it should have been a property of the children.</p>
  <p>What's the simplest way to deal with this?</p>