title: Type 'Any' has no subscript members in Swift 3 Xcode 8
body: <p>I am trying to convert my project to Swift 3 and keep getting this error. I have fixed all other errors but this one. I saw that a few other people have had problems but I am new to JSON so I didnt understand them. Any help would be greatly appreciated.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>class func fetchPriceForSymbol(_ symbol: String, completion:@escaping (_ stock: StockPrice) -&gt; ()) {
  
      DispatchQueue.global(priority: DispatchQueue.GlobalQueuePriority.default).async {
  
          let url = URL(string: "http://finance.yahoo.com/webservice/v1/symbols/\(symbol)/quote?format=json")
          let data = try? Data(contentsOf: url!)
  
          do {
              //let object = try JSONSerialization.jsonObject(with: data!, options: .allowFragments)
              let object = try! JSONSerialization.jsonObject(with: data!)
              if let dictionary = object as? [String: AnyObject] {
                  let title = object["list"] as! NSDictionary
                  let title2 = title["resources"] as AnyObject!
                  let title3 = title2[0] as AnyObject!
                  let title4 = title3["resource"] as AnyObject!
                  let fields = title4["fields"] as AnyObject!
  
  
                  let stockPrice = StockPrice (
                      price: fields["price"] as AnyObject! as! String
                  )
  
                  DispatchQueue.main.async {
                      completion(stock: stockPrice)
                  }
              }
          } catch {
              // Handle Error
          }
  
  
  
      }
  }
  </code></pre>