title: Unmarshal only gives me first element of array that is nested in JSON response
body: <p>I am trying to work with the Flickr API and I have an endpoint which gives me a response like this</p>
  
  <pre><code>{
    "photos": {
      "page": 1,
      "pages": 500,
      "perpage": 1,
      "total": 500,
      "photo": [
        {
          "id": "12345",
          "owner": "12345@N01",
          "secret": "12ab345xyz",
          "server": "1234",
          "farm": 1,
          "title": "Some Title",
          "ispublic": 1,
          "isfriend": 0,
          "isfamily": 0
        },
       ...
      ]
    },
    "stat": "ok"
  }
  </code></pre>
  
  <p>I have a struct that looks like this</p>
  
  <pre><code>type FlickrResp struct {
      Photos struct {
          Page int            `json:"page"`       //what page the results were retreived from
          Pages int           `json:"pages"`      //total number of pages of results
          Perpage int         `json:"perpage"`    //number of results per page
          Total int           `json:"total"`      //total number of results
          Photo []struct {
              ID string       `json:"id"`         //image ID
              Owner string    `json:"owner"`      //owner ID
              Secret string   `json:"secret"`     //owner secret
              Server string   `json:"server"`     //server ID
              Farm int        `json:"farm"`       //farm ID
              Title string    `json:"title"`      //image title
              Ispublic string `json:"ispublic"`   //is image publicly viewable?
              Isfriend string `json:"isfriend"`   //is image owner my friend?
              Isfamily string `json:"isfamily"`   //is image owner my family?
          }                   `json:"photo"`      //array of objects with details of photos
      }                       `json:"photos"`     //object that holds information about photoset
      Stat string             `json:"stat"`       //status
  }
  </code></pre>
  
  <p>and I'm trying to Unmarshal thusly</p>
  
  <pre><code>var fr FlickrResp                                               //create blank struct of type FlickrResp to hold JSON
  resp, err := ioutil.ReadAll(flickrCB.Body)                      //read HTTP GET response
  if err != nil {
  
  }
  json.Unmarshal([]byte(resp), &amp;fr)                               //serialize JSON into template
  </code></pre>
  
  <p>flickCB.Body comes from an http.Get</p>
  
  <p>The problem is that I'm only getting the first element of the photo array. I can see that I have more than one element when I print the response object cast as a string. What am I doing wrong? I've been banging my head against Unmarshal and more complicated JSON responses for a few days now.</p>