javascript - how to get object name or associative array index name?
<p>I have a JSON object like such:</p>

<pre><code>var list = {'name1' : {'element1': 'value1'}, 'name2' : {'element1': 'value2'});
</code></pre>

<p>How do I extract all the nameX string values? </p>

<p>For example, suppose I want to output them concatenated in a string such as: "name1 name2"</p>

<p>Use of jQuery in any solution is fine. Please advise...</p>
