title: java/jsonsimple - use key to get value from a jsonarray
body: <p>I have the following example json output form java/jsonsimple.</p>
  
  <p>The JSONArray is:</p>
  
  <pre><code>[{"dd1":{"actionType":"Dept","collegeID":""}},{"dd2":{"actionType":"Dept","collegeID":""}}] 
  </code></pre>
  
  <p>I'm trying to figure out how to get the value for the "dd1" key by using the "dd1" instead of the ndx.</p>
  
  <p>basically, I want to be able to test for a given "key" to see if it's in the array, with a value.</p>
  
  <p>The docs for JSONArray, allow for foo.get(1), but not foo.get("dd1")</p>
  
  <p>thanks</p>
  
  <p>ps.</p>
  
  <p>I tried to use the insert the above into a JSONObject, and then do a foo.get("dd1") but I didn't get the value.</p>
  
  <p>The issue appears to come down to figuring out how to get dict that's in the [] array.</p>
  
  <pre><code>doing something like foo.get(1).get("dd1") doesn't work...
  </code></pre>
  
  <p>thanks</p>