title: Getting values out of a JArray in JSON.net
body: <p>I am having trouble getting data from my JArray, specifically I am trying to access the ID value.  Here is a JSON example</p>
  
  <pre><code>{
  "page": 1,
  "totalPages": 5,
  "pageSize": 2,
  "sortField": "label",
  "sortOrder": "asc",
  "content": [
    {
    "organizationId": "Org123",
    "id": "333",
    "label": "comp1"
    },
    {
    "organizationId": "Org123",
    "id": "444",
    "label": "comp2"
    }
  ]
  }
  </code></pre>
  
  <p>And here is what I have in C#</p>
  
  <pre><code>        JArray jArray = new JArray(jsonString);
  
          foreach (JValue item in jArray)
          {
              Console.WriteLine(item["id"]);
          } 
  </code></pre>
  
  <p>I know I need to check the JValue to make sure it is an ID type, but I am confused on object types assigned once it's broken down in the JArray.</p>