title: best way to loop through this array structure
body: <p>i have an array returned from an API that is structured like this:</p>
  
  <pre><code>{
      user:[
          {key1:[
              {sub_key1:value1},
              {sub_key2:value2}
              ]
          },
          {key2:[
              {sub_key1:value1},
              {sub_key2:value2}
              ]
          },
      ]
  }
  </code></pre>
  
  <p>I need to loop through and do something with every 'value'.</p>
  
  <p>at the moment I have:</p>
  
  <pre><code>$.each(user, function(key,value){
      $.each(value, function(i, val){
          //inside each key:value pair, nice
          //but how do i get the value of this pair, without knowing the key?
  
      });
  
  });
  </code></pre>