title: javascript Object property undefined, but it's there
body: <p>i have a json-file looking like this:</p>
  
  <pre><code> { 
     "results": {
      "name1": {
          "printouts": {
              "property1": [{
                      "someName": "someText",
                      "someName2": "someURL",
                      "someName3": integer,
                      "someName4": boolean
                  }
              ],
              "property2": [
                  "someText"
              ],
              "property3": [
                  "someText"
              ],
              "property4": [
                  "someText"
              ],
              "property5": [
                  "someText"
              ],
              "property6": [
                  "someText"
              ]
          },
          "someName": "someText",
          "someName2": "someURL",
          "someName3": integer,
          "someName4": boolean
      },
      "name2": {
          "printouts": {
              "property1": [{
                      "fulltext": "someText",
                      "fullurl": "someURL",
                      "namespace": integer,
                      "exists": boolean
                  }
              ],
              "property2": [
                  "someText"
              ],
              "property3": [
                  "someText"
              ],
              "property4": [
                  "someText"
              ],
              "property5": [
                  "someText"
              ],
              "property6": [
                  "someText"
              ]
          },
          "someName": "someText",
          "someName2": "someURL",
          "someName3": integer,
          "someName4": boolean
      },
   ......
  }
  </code></pre>
  
  <p>What i want is to access <code>property6</code> of each object in <code>printouts</code>.
  What i've done so far:</p>
  
  <pre><code> for (i in results) {
          if (someOtherArray.length &lt; 1) {
              someOtherArray.push(i.printouts.property6.toString());
          }
  </code></pre>
  
  <p>But this gets me Error: Cannot read property property6 of undefined. What am i doing wrong?</p>
  
  <p>Any Idea? Thanks.</p>