title: Accessing a JavaScript's object property without knowing that property name
body: <p><strong>Situation</strong></p>
  
  <p>I have a JSON object which is returned. And Below is an example of one. The <code>who</code> in this particular example can change to whatever property name is required. So for example next time this will be <code>name</code> rather than <code>who</code></p>
  
  <pre><code> [{"who":"Arthur"},{"who":"Craig"},{"who":"Dan"},{"who":"Daniel"},{"who":"Frank"},{"who":"Ian"},{"who":"jamie"},{"who":"Jason"},{"who":"jaz"},{"who":"Liam"},{"who":"Paul"},{"who":"Shaun"},{"who":"Wayne"}]
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>In my JS I need to be able to refer to the property and access its data without using its name as the name will always be something different.</p>
  
  <p><strong>What I have tried</strong></p>
  
  <pre><code>data.forEach(function(m){
      console.info(m); // Object { who="Craig"}
      console.info(m.who); // Craig, as expected
      console.info(m[0]); // now not sure who to get it if who changes to name
  });
  </code></pre>