title: Get object from an array inside of an array
body: <p>I am trying to get a list of places from Foursquare's API. So far so good, but I have hit a wall that I can't figure out. Hopefully someone on here might have a good idea.</p>
  
  <p>The list I currently have shows the types of venues from a forsquare list, and then it breaks down each venue's name and lat/lng. The issue that I am having is getting the category from foursquare. The category is stored inside of another array, inside of the array for the venue.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>function app(info) {
      $('#content').append(info);
  }
  
  function getinfo(venueAPI) {
      $.getJSON(venueAPI, function (data) {
              var arr = [];
              var venuearr = [];
                  $('#content').empty();
                  console.log(data);
                  b = '&lt;br/&gt;';
                  categoryArr = data.response.list.categories.items;
                  categoryArrLength = data.response.list.categories.items.length;
                  console.log(categoryArr);
                  console.log(categoryArrLength);
                  for (var x = 0; x &lt; categoryArrLength; x++) {
                                                        app(categoryArr[x].category.pluralName + b);
                                                     }
                  arr = data.response.list.listItems;
                  venuearr = arr.items;
  
                  console.log(venuearr);
  
                  for (var i = 0; i &lt; venuearr.length; i++) {
                                                     ltlng =   L.latLng(venuearr[i].venue.location.lat, venuearr[i].venue.location.lng);
                                                     $('#content').append(ltlng + b);
                                                     app(venuearr[i].venue.name + b);
  
                  }
      });
      getinfo();
  }
  </code></pre>
  
  <p>which returns JSON like this for each venue:</p>
  
  <pre><code>"venue": {
                              "id": "51db2eca498e76d75a5dfea2",
                              "name": "A Gathering Of Stitches",
                              "contact": {},
                              "location": {
                                  "address": "54 Cove St",
                                  "lat": 43.66797,
                                  "lng": -70.256453,
                                  "cc": "US",
                                  "city": "Portland",
                                  "state": "ME",
                                  "country": "United States",
                                  "formattedAddress": [
                                      "54 Cove St",
                                      "Portland, ME"
                                  ]
                              },
                              "categories": [
                                  {
                                      "id": "4bf58dd8d48988d1f4941735",
                                      "name": "Design Studio",
                                      "pluralName": "Design Studios",
                                      "shortName": "Design",
                                      "icon": {
                                          "prefix": "https://ss3.4sqi.net/img/categories_v2/shops/design_",
                                          "suffix": ".png"
                                      },
                                      "primary": true
                                  }
                              ],
  </code></pre>
  
  <p>and this is what get's printed out on the screen:</p>
  
  <pre><code>Pubs
  Thrift / Vintage Stores
  Design Studios
  Coffee Shops
  LatLng(43.6565, -70.25313)
  Bull Feeney's
  LatLng(43.65697, -70.25081)
  Andy's Old Port Pub
  LatLng(43.6571, -70.25713)
  Arabica Coffee
  LatLng(43.66797, -70.25645)
  A Gathering Of Stitches
  LatLng(43.65687, -70.25763)
  Find
  </code></pre>
  
  <p>I've tried several different ideas, but nothing has seemed to work so far.</p>