title: Display lastName in application after retrieve value key in token Swift 4
body: <p>I have another problem after my previous post.</p>
  
  <p>i want to display lastname in application after i retrieve in value of token. here is my code to get value of lastname in token</p>
  
  <pre><code>// request = url of API 
  // token = I have already recovered the value of the token
  request.addValue("Bearer \(token!)", forHTTPHeaderField: "Authorization")
          //get information in token
          URLSession.shared.dataTask(with: request) { (data, response, error) in
              guard let data = data else { return }
              do {
                  let json = try JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.mutableContainers) as! [String: AnyObject]
                      let sub = json["sub"] as! [String: AnyObject]
                      // get value of lastName
                      let lastName = sub["lastname"] as! String
  
              } catch {
                  print("error")   
              }
              }.resume() 
  </code></pre>
  
  <p>and now I want to display the lastname in the application</p>
  
  <pre><code>    let headerMenu = HPMenuHeaderViewModel.init(lastName: "display lastname here..")
  // display table view and information of user like lastname
      let tableViewModel = HPMenuViewModel(titlePage: "Menu", array: arrayCellModel, headerMenuViewModel: headerMenu)
      self.tableViewModel = tableViewModel
  </code></pre>
  
  <p>Can you Help Me please !</p>