我有一个JSON响应:
// Only 1 connection per Host
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
configuration.HTTPMaximumConnectionsPerHost = 1
configuration.timeoutIntervalForRequest = 30
self.manager = Alamofire.Manager(configuration: configuration)
for i in 1...30 {
manager.request(.GET, "http://httpbin.org/get", "i" : i], encoding: .JSON)
.responseJSON { response in
switch (response.result){
case .Failure(let error):
print("error")
break;
case .Success(let json):
print(json)
}
})
我想使用JSON Match添加断言,将结果显示为 10 Broadway,New York,USA 。有人可以帮助我吗?