title: Push entire subarray
body: <p>I have an array this the format below. Trying to push multiple entire subarrays (starting with A-) fulfilling a condition to a new array and keep the array format. Have no success with the code below. </p>
  
  <p>Array:</p>
  
  <pre><code>{"#VER": {
      "A-1": {
          "verdatum": "2016-07-08",
          "vertext": "1073, Almi",
          "trans": [{
              "account": "1510",
              "amount": "52500.00"
          }, {
              "account": "3010",
              "amount": "-42000.00"
          }, {
              "account": "2611",
              "amount": "-10500.00"
          }]
      },
      "A-2": {
          "verdatum": "2016-07-08",
          "vertext": "1074, Text",
          "trans": [{
              "account": "1510",
              "amount": "15000.00"
          }, {
              "account": "3010",
              "amount": "-12000.00"
          }, {
              "account": "2611",
              "amount": "-3000.00"
          }]
      }
  }
  }
  </code></pre>
  
  <p>Code so far, but changes format of array</p>
  
  <pre><code>var newarray = [];
  $.each(array["#VER"], function(i, item) {
  if (condition for subarray) {
      newarray.push(i,item);  
  } 
  });
  </code></pre>