title: How do I loop through json objects to get the data I want
body: <p>I have json data and I want to get a specific object from the data. When I print <code>data._embedded.artworks[0]._links.thumbnail</code> in the console, I'm able to get the first thumbnail. </p>
  
  <p>I'm wondering how I get all of the thumbnails. I tried </p>
  
  <pre><code>for (var key in data) {
      console.log(data._embedded.artworks[0]._links.thumbnail);
  }
  </code></pre>
  
  <p>But here I also just get the thumbnails from the first id. I tried <code>artworks[key]</code> but I was not able to access other methods of the json data such as <code>_links</code>. </p>
  
  <p>How would I loop through the json data to pull out all of the thumbnails?</p>