title: How to get JSON data and show it on a table view cell
body: <p>I passed a JSON data to this table view controller. How to get the JSON data and show it on a table view cell?</p>
  
  <p>When I print <code>passedData</code> I receive the following output:</p>
  
  <pre><code>["jobs": &lt;__NSArrayM 0x17005d9d0&gt;
  ({
      jobDate = "2017-08-31";
      jobEndTime = 1504144800;
      jobID = 87;
      jobTime = 1504137600;
  },
  {
      jobDate = "2017-08-31";
      jobEndTime = 1504173600;
      jobID = 89;
      jobTime = 1504170000;
  }), 
  "result": success, 
  "message": Retrieve Sucessfully]
  </code></pre>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>var passedData: [String: Any]!
  
  override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      guard let jobs = passedData["jobs"] as? [[String:Any]] else {return 0}
      return jobs.count
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath  indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCell(withIdentifier: "jobCell", for: indexPath)
  
      // jobs[indexPath.row] display jobTime 
  
      return cell       
   }
  </code></pre>