GET方法Alamofire我有一些问题。当我的数据我有错误:Alamofire扁平错误:意外地发现零,而解包一个可选值
EXC_BAD_INSTRUCTION(代码= EXC_I386_INVOP,子码=为0x0) 致命错误:意外发现零而展开的可选值
我在做什么错?我的代码:
let URLString = "http://MyURLWebService...";
Alamofire.request(.GET, URLString)
.responseJSON { (response) in
print(response.request) // original URL request
print(response.response) // URL response
print(response.data) // server data
print(response.result) // result of response serialization
if let JSON = response.result.value {
print(JSON["Phones"] as! String)
//print("JSON: \(JSON)")
}
}
我的格式REST API数据: [{电话 “:” + 1(100)111-22-33“,”Phones2“:null}] – Dim