title: Type "Any" has no subscript members in Swift 3 during pulling array of data from server
body: <p>I'm trying to update my project to swift 3.0 and all codes about pulling data from server is give me this error in the following picture.</p>
  
  <p><a href="https://i.stack.imgur.com/pwoke.png" rel="nofollow"><img src="https://i.stack.imgur.com/pwoke.png" alt="enter image description here"></a></p>
  
  <p>I tried a lot of solutions that is available here but with no useful result what is the problem in this case ?</p>
  
  <pre><code> do {
          let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments)
  
  
          if let countries = json["Countries"] as? [String: AnyObject] {
              for country in countries {
                  if let couname = country["countryname"] as? [AnyObject] {
                      country_names.append(couname)
                  }
  
                  if let coucode = country["code"] as? [AnyObject] {
                      country_codes.append(coucode)
                  }
  
              }
          }
      } catch {
          print("Error Serializing JSON: \(error)")
      }
  </code></pre>