title: how to filter json values to an array
body: <p>I have a json file like this</p>
  
  <pre><code>let myfile = [
      {"name":"John","eid":664,"socialid":399,"testid":799},
      {"name":"Sam","testid":249,"eid":64,"socialid":80},
      {"name":"Albert","eid":422,"testid":20,"socialid":10},
      {"name":"Michel","eid":497,"testid":15,"socialid":60}]
  </code></pre>
  
  <p>from this above json I want to filter all values by it's key name and push it to an array.
  expected output is:</p>
  
  <pre><code>"name": ["John", "Sam", "Albert", "Michel"],
  "eid": [664, 64, 422, 497],
  "testid": [799, 249, 20, 15],
  "socialid": [399, 80, 10, 60]
  </code></pre>
  
  <p>How to make this happen ?</p>
  
  <p>I tried like this</p>
  
  <pre><code>let arr3 = [];
  $.each( myfile, function( key, value ) {
    if(this.hasOwnProperty('name'))
    {
      console.log("is there")
      arr3.push(value);
    }
  });
  console.log(arr3);
  </code></pre>
  
  <p>it's not working as expected.</p>