How can I remove the parent keys from a javascript Object?
<p>I currently have this Object:</p>

<pre><code>schoolsObject = [{
  "college_1":
    {
      "id":"college_1",
      "location":"Victoria",
      "name":"College One"
    },
  "college_2":
    {
      "id":"college_2",
      "location":"Tasmania",
      "name":"College Two"
    }
  }];
</code></pre>

<p>I want to remove the top level keys ie. college_1, college_2 and 'flatten' the object out like this, so I have no 'top level' keys:</p>

<pre><code>flatSchoolsObject = 
    [{
      "id":"college_1",
      "location":"Victoria",
      "name":"College One"
    },
    {
      "id":"college_2",
      "location":"Tasmania",
      "name":"College Two"
    }];
</code></pre>

<p>Here is my latest attempt, I've made a lot of different try's but have not been documenting them:</p>

<pre><code>// schoolIDs = Object.keys(schoolsObject);
var schools = {};

for(var i=0; i&lt;Object.keys(schoolsObject).length; i++){
  for (var property in schoolsObject) {
    if (schoolsObject.hasOwnProperty(property)) {
      schools[i] = {
        'id': schoolsObject[property]['id'],
        'name' : schoolsObject[property]['name'],
        'location': schoolsObject[property]['location'],
      };
    }
  }
}
console.log(schools)
</code></pre>

<p>Obviously this one is not what I'm after as it leaves me with Object {0: Object, 1: Object}.</p>

<p>Is what I want to do here possible or am I looking at it the wrong way?</p>