title: Why is the JSON returning as nil for everything besides latitude and longitude?
body: <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
  @IBOutlet weak var tableview: UITableView!
  var weatherList: [weatherJSON] = []
  
  
  func downloadJSON() {
      let jsonUrlString = "https://api.darksky.net/forecast/59c6b6b7efd5c3fc0f617338cfae6c48/40.7127,-74.0059"
      guard let url = URL(string: jsonUrlString) else {return}
      URLSession.shared.dataTask(with: url) { (data, response, err) in
          guard let data = data else {return}
  
          do {
              let JSON = try JSONDecoder().decode(weatherJSON.self, from: data)
              self.weatherList.append(JSON)
              print(self.weatherList)
              DispatchQueue.main.async {
                  self.tableview.reloadData()
              }
          } catch let jsonErr {
              print("Error serializing json", jsonErr)
          }
  
          }.resume()
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      downloadJSON()
  
  }
  }
  
  
  extension ViewController: UITableViewDataSource {
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return weatherList.count
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! countryCell
  
  
  cell.nameLabel?.text = "\(String(describing: weatherList[indexPath.row].latitude))"
  
  
      return cell
  }
  }
  
  extension ViewController: UITableViewDelegate {
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
      performSegue(withIdentifier: "segue1", sender: nil)
  }
  }
  </code></pre>
  
  <p>Edit: I called the JSON data successfully by using string interpolation -    </p>
  
  <p>cell.nameLabel?.text = "(String(describing: weatherList[indexPath.row].latitude))"</p>
  
  <p>but now the only information returning anything but nil in my call is latitude and longitude. Why is the only thing returning from my JSON call successfully nil? Am I calling something incorrectly? Thank you for all your help so far. If I should make a new post, please let me know. I think that this is on the same topic though, as it's pretty much the same idea as the original posting by me yesterday. </p>
  
  <p>Stackoverflow itself won't let me post without adding more text, but because I've already said everything I need to say, this is just filler.</p>