我正在尝试使用Alamofire调用JSON数组中的对象。 我可以让Alamofire解析我的文件,但我找不到获取特定参数的方法。
如果我使用:
Alamofire.request(.GET, "https://example.com//users_result.json")
.responseJSON { response in
print(response.result) // result of response serialization
if let JSON = response.result.value {
print(JSON.count)
print("JSON: \(JSON[1])")
}
}
代码打印出来:
> SUCCESS 4 JSON: {
> Age = 22;
> Email = "annahswift@gmail.com";
> Location = "New York";
> MyText = "Love Music";
> Name = Annah;
> Password = 123456;
> REF = 003;
> "Reg_Date" = "2015-07-30";
> Sex = Female;
> Surname = Swift; }
现在,我如何调用参数' name'?
print("JSON: \(JSON[1][4])") // nil ??
答案 0 :(得分:0)
RewriteCond %{THE_REQUEST} ^.+?\ [^?]+\.php[?\ ] [NC]
RewriteRule !(^|/)(cronjob|specialpage)\.php$ - [F,NC]