title: Iterate through Json data
body: <p>So I have this array of JSON objects: </p>
  
  <pre><code>[
    {
      "columns": [
        {
          "fields": [
            {
              "valueFields": [
                {
                  "type": 1,
                  "fieldName": "prj_Name",
                  "value": "1A BNL FB e-Powedr basic Balci Reizen",
                  "valueId": "",
                  "defaultValue": false,
                  "baseValue": false,
                  "mandatoryField": true,
                  "hasError": false,
                  "errorMessage": "",
                  "disabled": false,
                  "visible": true
                }
              ]
            }
          ]
        }
      ]
    }
  ]
  </code></pre>
  
  <p>and I would like to Iterate through the Data to do some stuff with it later. </p>
  
  <p>I already tried this :</p>
  
  <pre><code>for (var key in currentObject) {
      if (currentObject.hasOwnProperty(key)) {
          console.log(key + ': ' + currentObject[key]);
      }
  }
  </code></pre>
  
  <p>But it prints every letter separatly in the console, so I guess it isn't right.
  Do you have any Ideas of what I am doing wrong ?</p>
  
  <p>[EDIT]</p>
  
  <p>I tried to add <code>var currentObject = JSON.parse(Json);</code> before the <code>for</code> loop. </p>
  
  <p>I now get this printed <code>0: [object Object]</code></p>
  
  <p>How to iterate through the object then ?</p>