title: How to convert an object of objects to an array of objects?
body: <p>I have an external file <strong>people.json</strong>. How I can convert it to a javascript array with json syntax?<br>
  this is the <strong>people.json</strong> content:</p>
  
  <pre><code>{
  "1":{
      "Name":"Jhon",
      "Surname":"Kenneth",
      "mobile":329129293,
      "email":"jhon@gmail.com"
  },
  "2":{
      "Name":"Thor",
      "Surname":"zvalk",
      "mobile":349229293,
      "email":"thor@gmail.com"
  },
  "3":{
      "Name":"Mila",
      "Surname":"Kvuls",
      "mobile":329121293,
      "email":"mila@gmail.com"
  }
  }
  </code></pre>
  
  <p>I want an array with this format</p>
  
  <pre><code>var person = [
  { "name":"jhon" , "surname":"kenneth", "mobile":329129293, "email":"jhon@gmail.com"}, 
  { "Name":"Thor", "Surname":"zvalk", "mobile":349229293, "email":"thor@gmail.com" }, 
  { "Name":"Mila", "Surname":"Kvuls", "mobile":329121293, "email":"mila@gmail.com"}
  ];
  </code></pre>
  
  <p>I tried with the next code, but it doesnt worker:</p>
  
  <pre><code> var person;   
  $.getJSON('people.json', function (json) {
  person[]= json
  });
  </code></pre>
  
  <p>By the way, the file contacts.json is in my server.</p>