title: How can I get data iterate Json?
body: <p>I need get data the my Json but I can't use 'key' because the 'key' is different each day.</p>
  
  <p><a href="https://i.stack.imgur.com/sZySk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sZySk.png" alt="enter image description here"></a></p>
  
  <p>I tried : </p>
  
  <pre><code>template: function(params) {
          const objects = JSON.parse(JSON.stringify(params.data.masterdetail));
          for (const obj of objects) {
            const keys = Object.keys(obj);
            const cont = 0;
            keys.forEach(key =&gt; {
              const valor = obj[key];
              console.log('value ', valor[0]); 
            });
          }
  </code></pre>
  
  <p>I first tried with 0 and then use cont, but with 0 <code>console.log (value is undefined)....</code></p>
  
  <p>If I use <code>console.log ('value' , valor['name'])</code> IT'S OK ! but <strong>I can't use keys</strong> and if I use  valor[0] is undefined...........</p>
  
  <p>Example Json</p>
  
  <pre><code>{
  
   "headers": [ 
     "headerName": "asdasd",
   ],   //end headers
  
    "datas": [
  
    "idaam": "11",
    "idorigen": "11",
  
     "masterdetail": [{
          "child1": {
            "name": "I AM",
            "age": "1"
  
          },
  
          "child2": {
            "name": "YOU ARE",
            "age": "2"
          },
  
          "child3": {
          "name": "HE IS",
          "age": "3"
          },
      }] //end masterdetail
  
    ]//end datas
  
  }//end JSON
  </code></pre>
  
  <p>Edit : </p>
  
  <p>I can't use 'keys' because today I receive "name", "typeval" etc. and tomorrow I can get 'surname','id' etc.</p>
  
  <p>If you see in my first img you can see "4" bits of data.</p>
  
  <pre><code>1º obj[key]{
  name = "adopt",
  typeval= "",
  etc
  }
  2º obj[key]{
  "link" = "enlace",
  "map" = "map"
  etc
  }
  </code></pre>
  
  <p>If I use this code : I get "name" OKEY but </p>
  
  <p>I HAVE PROHIBITED use of <code>value['name']</code> or <code>value[typeval]</code> because this Json always is dynamic.</p>
  
  <pre><code>var objects = params.data.masterdetail[0];
          const keys = Object.keys(objects);
          let value;
  
          keys.forEach(key =&gt; {
            value = objects[key];
            console.log(value['name']);
            console.log(value['typeval']);
          });
  </code></pre>
  
  <p>I need for example : </p>
  
  <pre><code> var objects = params.data.masterdetail[0];
          const keys = Object.keys(objects);
          cont = 0 ;
  
          keys.forEach(key =&gt; {
            value = objects[key];
            console.log(value[0]);
          });
  </code></pre>
  
  <p>but <code>value[0]</code> is undefined and then when I arrive <code>2ºobj[key]</code> link is index 0 but cont maybe is .... 4... </p>
  
  <p>Sorry for my English...</p>