title: How to check if object is JProperty or JArray
body: <p>Given the two JTokens:</p>
  
  <pre><code>{ "Users": { "Name": "Carl" } }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{ "Users": [ { "Name": "Carl" }, {"Name": "Peter"} ] }
  </code></pre>
  
  <p>How can I tell if Users is a JProperty or JObject/JArray? </p>
  
  <p>I need loop Users with</p>
  
  <pre><code>foreach (JObject User in myjobject["Users"]) { ... }
  </code></pre>
  
  <p><strong>Solution</strong>
  It was as simple as myjobject["Users"].GetType(). However, that didn't work in the Watch debugger window, but it worked at runtime. Hrmpff.</p>