title: assign value of type 'JSON' to type '[JSON]'
body: <p>I have a tableview and data saved in JSON on var data = JSON
  and I tried to save the same data to another view with same type but it gives error <strong>&quot;Cannot assign value of type 'JSON' to type '[JSON]'&quot;</strong></p>
  <pre><code>var data = [JSON]()    
   
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
                      
      guard let vc = storyboard?.instantiateViewController(withIdentifier: &quot;SecAdsViewController&quot;) as? SecAdsViewController else { return }
      vc.data = self.data[indexPath.row]
      self.navigationController?.pushViewController(vc, animated: true)
  }
  </code></pre>
  <p>on the second view</p>
  <pre><code>var data = [JSON]()
  </code></pre>