title: how to populate data in UITableView ? swift
body: <p>I have managed to retrieve data from JSON using swiftJSON but I am facing problems when i try to populate tableview. I am new to iOS development, so please bear with me on this. I would appreciate if you could help or provide some ideas  ? </p>
  
  <p>Here's the code:</p>
  
  <pre><code> override func viewDidLoad(){
   super.viewDidLoad()
   getContactListJSON()
   }
  
   func getContactListJSON(){
  let urlString = "http://jsonplaceholder.typicode.com/users"
  let urlEncodedString = urlString.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)
  let url = NSURL( string: urlEncodedString!)
  var task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, innerError) in
      let json = JSON(data: data)
      let contactsArray = json.arrayValue
  
      dispatch_async(dispatch_get_main_queue(), {
          for contacts in contactsArray
          {
              let id = contacts["id"].stringValue
              let name = contacts["name"].stringValue
              println( "id: \(id) name: \(name)" )
          }
      })
  }
  task.resume()
  }
  </code></pre>