Need Help populating array with JSON data using SwiftyJSON
Need Help populating array with JSON data using SwiftyJSON I want to populate an array I have with JSON data. I'm using SwiftyJSON and Alamofire. I'm new to parsing JSON, so i apologize for any ignorance on my end. The URL below is the url i'm inserting in getAllTimeAverage(). Any help would be awesome!! thanks! This is the JSON Data https://apiv2.bitcoinaverage.com/indices/global/history/BTCILS?period=alltime&format=json This is the array i want to populate var allTimeAverages: [Any] = These are my functions. I call them in my cellForRowAt:, when i print the allTimeAverages.count, I get back zero. func getAllTimeAverage(url: String) { Alamofire.request(url, method: .get) .responseJSON { response in if response.result.isSuccess { print("Sucess! Got the Bitcoin Data") let bitcointJSON : JSON = [JSON(response.result.value!)] self.updateAverageAllTime(json: bitcointJSON) } else {...
