You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.responseJSON {
response in
switch response.result {case.failure(let error):// Do whatever herereturncase.success(let data):// First make sure you got back a dictionary if that's what you expect
guard let json = data as?[String:AnyObject]else{NSAlert.okWithMessage("Failed to get expected response from webserver.")return}// Then make sure you get the actual key/value types you expect
guard var points =json["points"]as?Double,let additions =json["additions"]as?[[String:AnyObject]],let used =json["used"]as?[[String:AnyObject]]else{NSAlert.okWithMessage("Failed to get data from webserver")return}
Alamofire.request("https://httpbin.org/get").responseJSON { response in
debugPrint(response)
Error : 馃憥 Type 'Any' has no subscript members
The text was updated successfully, but these errors were encountered: