title: Ambiguous reference to member 'subscript' Dictionary
body: <p>I get this error: </p>
  
  <blockquote>
    <p>Ambiguous reference to member 'subscript'" when I try to  get status
    string into dictionary</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>do {         
      let dictionary: Dictionary&lt;NSObject, AnyObject&gt; = try JSONSerialization.jsonObject(with: geocodingResultsData!, options: JSONSerialization.ReadingOptions.mutableContainers) as! Dictionary&lt;NSObject, AnyObject&gt;
  
      // Get the response status.
  
      let status = dictionary["status"] as! String // Here : Ambiguous reference to member 'subscript' 
  
      if status == "OK" {
          let allResults = dictionary["results"] as! Array&lt;Dictionary&lt;NSObject, AnyObject&gt;&gt;
          self.lookupAddressResults = allResults[0]
  
          // Keep the most important values.
          self.fetchedFormattedAddress = self.lookupAddressResults["formatted_address"]as! String
          let geometry = self.lookupAddressResults["geometry"] as! Dictionary&lt;NSObject, AnyObject&gt;
          self.fetchedAddressLongitude = ((geometry["location"] as! Dictionary&lt;NSObject, AnyObject&gt;)["lng"] as! NSNumber).doubleValue
          self.fetchedAddressLatitude = ((geometry["location"] as! Dictionary&lt;NSObject, AnyObject&gt;)["lat"] as! NSNumber).doubleValue
  
          completionHandler(status: status, success: true)
      }
      else {
          completionHandler(status: status, success: false)
      }
  } catch {
  }
  </code></pre>