title: Loop through multidimensional JSON Array and get values in javascript
body: <p>I've created a JSON object which has two arrays in it. I've searched all over the web on how to extract the data but all the code I've tried has either returned "undefined" or [object object].</p>
  
  <p>Can you please look at my example and show me how I would do this?</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
       &lt;title&gt; New Document &lt;/title&gt;
    &lt;meta name="Generator" content="NPP-Plugin"&gt;
    &lt;meta name="Author" content=""&gt;
    &lt;meta name="Keywords" content=""&gt;
    &lt;meta name="Description" content=""&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;div id="file"&gt;&lt;/div&gt;
   &lt;div id="applicID"&gt;&lt;/div&gt;
    &lt;script type="text/javascript"&gt;
  var IETMObj = {
      "allItems": [{ 
           "sFile": "Test.html",
           "Applicability": [{   // second dimension
                              "ApplicID": "subj_1",
                              "ApplicDisp": "Driving",
                              "Condition": "In rain"
                      },{
                              "ApplicID": "subj_2",
                              "ApplicDisp": "Running",
                              "Condition": "Uphill"
                      }]
              }]
    };
  
    for (var i = 0; i &lt; IETMObj.length; i++){
        document.write("&lt;br&gt;&lt;br&gt;array index: " + i);
    var obj = IETMObj[i];
    for (var key in obj){
      var value = obj[key];
      document.write("&lt;br&gt; - " + key + ": " + value);
    }
  }
  
  
    &lt;/script&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>