title: “Ambiguous Reference To” Error after updating to Swift 3 JSON
body: <p>I've updated my code to Swift 3 protocol, and this is the last error I get that I can't solve in regards to JSON.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    let task = URLSession.shared.dataTask(with: targetURL!, completionHandler: { (data, response, error) -&gt; Void in
          do {
              if let jsonResult = try JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.allowFragments) as? [String : AnyObject] {
  
                  if let items = jsonResult["items"] as? [String : AnyObject]? {
  
                      if let youtubeVideoImageURL = items![0]["snippet"]!!["thumbnails"]!!["high"]!!["url"]!! as? String {
  
                          self.youtubeJsonImage.loadImageUsingCacheWithUrlString(youtubeVideoImageURL)
                          self.youtubeImageURLHidden.text = youtubeVideoImageURL
                          self.youtubeJsonImage.clipsToBounds = true
  
                      } else {
  
                          let youtubeVideoImageURL = items![0]["snippet"]!!["thumbnails"]!!["standard"]!!["url"]!! as? String
                          self.youtubeJsonImage.loadImageUsingCacheWithUrlString(youtubeVideoImageURL!)
                          self.youtubeImageURLHidden.text = youtubeVideoImageURL
                          self.youtubeJsonImage.clipsToBounds = true
  
  
                      }
  
                      let youtubeLikeCount = items![0]["statistics"]!!["commentCount"]!!
                      let itermediarytext = youtubeLikeCount as! String
                      let numberText = Int(itermediarytext)
                      let finalText = self.suffixNumber(numberText!)
                      self.youtubeVideoLikes.text = "\(finalText) comments"
  
                      self.determineBool()
  
  
                  }
              }
          }
          catch {
              print("json error: \(error)")
              self.stopAnimating()
  
          }
  
      })
  
      // Start the request
      task.resume()
  
  }
  </code></pre>
  
  <p>And this is the error line with Ambiguous Reference,</p>
  
  <pre><code>if let youtubeVideoImageURL = items![0]["snippet"]!!["thumbnails"]!!["high"]!!["url"]!! as? String {
  </code></pre>
  
  <p>I've also looked through other stack overflow solutions but they don't seem to apply to this type of data structure.</p>
  
  <p>Any help is really appreciated.</p>
  
  <p>Thanks.</p>