title: accessing items in an json.net jarray in c#
body: <p>My API returns</p>
  <pre><code>{
    &quot;result&quot;: [
      {
        &quot;id&quot;: &quot;51473&quot;,
        &quot;name&quot;: &quot;serv-vc&quot;,
        &quot;modifydate&quot;: &quot;2014-10-09 18:29:48.033&quot;,
        &quot;expirationoff&quot;: &quot;false&quot;,
        &quot;createdate&quot;: &quot;&quot;,
        &quot;scheduleoff&quot;: &quot;false&quot;,
      }
    ],
    &quot;status&quot;: 0
  }
  </code></pre>
  <p>which I've stored as a JObject reponseobj</p>
  <p>I'm having trouble figuring out how to access <code>responseobj[&quot;result&quot;][0][&quot;id&quot;]</code>.</p>
  <p>Every time I try that, it gives an array about being out of bounds.</p>
  <p>What am I missing?</p>
  <p>I also tried</p>
  <pre><code>JArray resultarr = (JArray)responseobj.SelectToken(&quot;result&quot;);
  resultarr[0][&quot;id&quot;] 
  </code></pre>
  <p>but have the same results.</p>