title: read name of unknown properties
body: <p>I have a simple javascript object with several unknown properties containing a value. The problem is that i don't really know the name of the field since it is variable. How can I access this unknown property?</p>
  
  <p>For better understanding I have a simple object like following:</p>
  
  <pre><code>var a = { cat : "meow", dog : "woof"};
  </code></pre>
  
  <p>I need to read the name and the value of the different properties. I was thinking about something like the following: <code>a.getField(0).name</code>.</p>