title: How to push some data from Json into new array in AngularJS?
body: <p>Let's say I have this Json ..</p>
  
  <pre><code>{
      "name": "Mark",
      "gender": "male",
      "account1": {
          "accountNo": 1201,
          "balance": 300
      },
      "account2": {
          "accountNo": 1354,
          "balance": 5000
      }
  }    
  </code></pre>
  
  <p>What I expect is like ..</p>
  
  <pre><code>$scope.myArray = [
      {
          "accountNo": 1201,
          "balance": 300
      },
      {
          "accountNo": 1354,
          "balance": 5000
      }
  ];
  </code></pre>
  
  <p>In AngularJS, how can I pick some part of Json data  and push it into an array iteratively( I mean, when I have account1, account2 account3 or more, it can still add them into the array).</p>