title: How to get value from a nested JSON array in AngularJS template?
body: <p>I have some JSON data below:</p>
  
  <pre><code>{
  "tracks": [
      {
          "album": {
              "released": "2013",
              "href": "spotify:album:3qGeRY1wt4rrLIt1YuSwHR",
              "name": "The Marshall Mathers LP2 (Deluxe)",
              "availability": {
                  "territories": "AD AR AT AU BE BG BO BR CH CL CO CR CY CZ DE DK DO EC EE ES FI FR GB GR GT HK HN HR HU IE IS IT LI LT LU LV MC MT MY NI NL NO NZ PA PE PH PL PT PY RO SE SG SI SK SV TR TW UY"
              }
          },
          "name": "The Monster",
          "popularity": "0.94",
          "external-ids": [
              {
                  "type": "isrc",
                  "id": "USUM71314082" &lt;-- I want this value
              }
          ],
          "length": 250.188,
          "href": "spotify:track:5U8hKxSaDXB8cVeLFQjvwx",
          "artists": [
              {
                  "href": "spotify:artist:7dGJo4pcD2V6oG8kP0tJRR",
                  "name": "Eminem"
              },
              {
                  "href": "spotify:artist:5pKCCKE2ajJHZ9KAiaK11H",
                  "name": "Rihanna"
              }
          ],
          "track-number": "12"
      },
      ...
  ]}
  </code></pre>
  
  <p>I am able to take out other values like album name, release date etc, but not the external-ids id. these are the two ways i have tried in my angular template:</p>
  
  <pre><code>&lt;div class="panel panel-success" ng-repeat="track in something.tracks"&gt;
      &lt;p&gt;Track name: {{ track.name }}&lt;/p&gt;
      &lt;p&gt;Album release date: {{ track.album.released }}&lt;/p&gt;
      &lt;p&gt;Spotify id: {{track.external-ids[0].id}} &lt;/p&gt;
  
      &lt;!-- &lt;span ng-repeat="obj in track.external-ids"&gt;  
              &lt;p&gt;Spotify id: {{ obj.id }}&lt;/p&gt;
          &lt;/span&gt; --&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>those are the two solutions i came up with but neither seem to work. The first one (not commented out) returns 0, the second one doesn't display the "spotify id:" line at all.</p>
  
  <p>Does anybody know how to do this? it seems pretty straightforward but i just cant seem to get my head around it. Thanks. </p>