title: Unable to unmarshal golang response
body: <p>I've been trying to extract some JSON by unmarshalling my json response into structs, but I have no idea why it's not doing it properly. I've also tried <code>gjson</code> but same result. Am I missing something here? </p>
  
  <p>JSON Result:</p>
  
  <pre><code>{"availabilities":[{"pickup":{"status":"OnlineOnly","purchasable":false},"shipping":{"status":"InStockOnlineOnly","purchasable":true},"sku":"12341231","sellerId":"438178","saleChannelExclusivity":"OnlineOnly","scheduledDelivery":false,"isGiftCard":false,"isService":false}]}
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>// Inventory ...
  type Inventory struct {
      Availabilities []Availability `json:"availabilities"`
  }
  
  // Availability ...
  type Availability struct {
      Sku                    string   `json:"sku"`
      SellerID               string   `json:"sellerId"`
      SaleChannelExclusivity string   `json:"saleChannelExclusivity"`
      ScheduledDelivery      bool     `json:"scheduledDelivery"`
      IsGiftCard             bool     `json:"isGiftCard"`
      IsService              bool     `json:"isService"`
      Pickup                 Statuses `json:"pickup"`
      Shipping               Statuses `json:"shipping"`
  }
  
  // Statuses ..
  type Statuses struct {
      Status      string `json:"status"`
      Purchasable bool   `json:"purchasable"`
  }
  
  func (pr *Program) checkInventory() {
      url := fmt.Sprintf("https://www.bestbuy.ca/ecomm-api/availability/products?accept-language=en-CA&amp;skus=%s", pr.Sku)
      log.Infof("URL %s", url)
      resp, err := http.Get(url)
      if err != nil {
          log.Fatal(err)
      }
      defer resp.Body.Close()
      bodyBytes, err := ioutil.ReadAll(resp.Body)
      if err != nil {
          log.Fatal(err)
      }
  
      log.Info(string(bodyBytes))
  
      var inv Inventory
      json.Unmarshal(bodyBytes, &amp;inv)
      log.Infof("%+v", inv)
  }
  </code></pre>
  
  <p>Console:</p>
  
  <pre><code>INFO[2020-04-07T03:01:10-07:00] URL https://www.bestbuy.ca/ecomm-api/availability/products?accept-language=en-CA&amp;skus=12341231 
  INFO[2020-04-07T03:01:10-07:00] ﻿{"availabilities":[{"pickup":{"status":"OnlineOnly","purchasable":false},"shipping":{"status":"InStockOnlineOnly","purchasable":true},"sku":"12341231
   ,"sellerId":"438178","saleChannelExclusivity":"OnlineOnly","scheduledDelivery":false,"isGiftCard":false,"isService":false}]}
  INFO[2020-04-07T03:01:10-07:00] {Availabilities:[]}
  </code></pre>