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"]) } } } In your JSON quotes is an array so if you want to access quote of the first object you should do it by accessing first object: func getAPI() { Alamofire