title: cannot get data through each()
body: <p>Sorry I'm still quite new to this. I am having trouble getting the data from this array in my ajax success. I am trying to iterate through <code>productVariantImages</code> to get the two <code>imagePath</code> but I am only able to get one which is from id 496. Below is the sample of the array. </p>
  
  <p>Also if possible I would like to use objects instead of array</p>
  
  <pre><code>[1] =&gt; Array
      (
        [id] =&gt; 194
        [sku] =&gt; Apple SKU2
        [variantName] =&gt; Pear 2
        [productVariantImages] =&gt; Array
        (
           [0] =&gt; Array
             (
               [id] =&gt; 496
               [imageName] =&gt; Apples in season.png
               [imagePath] =&gt; http://tos-staging-web-server-s3.s3.amazonaws.com/9/catalogue/apples_in_season.png
               [visible] =&gt; 1
               [featured] =&gt; 
               [modifiedDate] =&gt; 1448293975
               [createDate] =&gt; 1448293975
             )
  
            [1] =&gt; Array
             (
               [id] =&gt; 266
               [imageName] =&gt; Apples in season.png
               [imagePath] =&gt; http://tos-staging-web-server-s3.s3.amazonaws.com/9/catalogue/apples_in_season.png
               [visible] =&gt; 1
               [featured] =&gt; 
               [modifiedDate] =&gt; 1448293975
               [createDate] =&gt; 1448293975
             )
  
          )
       )
  </code></pre>
  
  <p>My ajax</p>
  
  <pre><code>success: function(data){
      ...
      var thumbnails = {};
      $.each(data.productVariantImages,function(i, productVariantImages){
          thumbnails[data.sku] = this.imagePath;    
      });
      ...
   }       
  </code></pre>
  
  <p>Current output</p>
  
  <pre><code>{Apple SKU2: "http://tos-staging-web-server-s3.s3.amazonaws.com/9/catalogue/apples_in_season.png"}
  </code></pre>
  
  <p>Desired output: Trying to iterate through and get key/value values as shown </p>
  
  <pre><code>{Apple SKU2: "http://tos-staging-web-server-s3.s3.amazonaws.com/9/catalogue/apples_in_season.png",
   Apple SKU2: "http://tos-staging-web-server-s3.s3.amazonaws.com/9/catalogue/apples_in_season.png"}
  </code></pre>