当我打印(JSON)时,我得到这些文件,所以.request可以工作。 但是,当我试图进入“试验”键(它存在),我得到零Swift:当访问NSDictionairy时,JSON为零
我得到
“我在这里”
“现在,我在这里”
Alamofire.request(.GET, self.APIBaseUrl , parameters: ["api_key": self.APIkey])
.responseJSON { response in
if let JSON = response.result.value {
print("I am here")
if let str = JSON as? NSDictionary {
print("now , I am here")
if let movieUrlString = str["poster_path"] as? String)! {
print("but now here")
}
EDITED
print(dict)
**dates** = {
maximum = "2015-10-21";
minimum = "2015-09-30";
};
page = 1;
**results** = (
{
adult = 0;
"poster_path" = "/2XegKZ0I4QrvzpEHneigRk6YTB1.jpg";
++(更多结果)
您是否更具体? – Abizern
其TMDB数据库和结果是: – PoolHallJunkie