Getting name of object as a string in JavaScript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a><br>
  <a href="http://stackoverflow.com/questions/3982721/javascript-getting-a-single-property-name">Javascript: Getting a Single Property Name</a>  </p>
</blockquote>



<p>Given a JavaScript object or JSON object such as:</p>

<pre><code>{
  property: "value"
}
</code></pre>

<p>How can one get the word <code>property</code> as a string?</p>
