How do I access a nested JSON value using Alamofire and SwiftyJSON?
问题 I am trying to access nested JSON results using swiftyJSON and Alamofire. My print value is nill and I believe I am not doing this correctly. What should my parameters be? I am trying to get the quote value located at http://quotes.rest/qod.json func getAPI() { Alamofire.request(.GET, "http://quotes.rest/qod.json", parameters: ["contents": "quotes"]) .responseJSON { response in if let JSON = response.result.value { print(JSON["quote"]) } } } 回答1: In your JSON quotes is an array so if you want