How to get the object's name inside a object javascript : <p>Just imagine I have a nested object like the following one:</p>

<pre><code>{
    "post":{
        "hello":{
            // what's in here doesn't matter
        }
        "test":{
            // also doesn't matter
        }
}
</code></pre>

<p>and is there any way to get the object name inside post to an array like this:</p>

<pre><code>["hello", "test"]
</code></pre>
