Konwertuj JSON na dane

do { 
    let data = try JSONSerialization.data(withJSONObject: result, options: [])  
    self.userData = try newJSONDecoder().decode(FacebookResponse.self, from: data) 
    self.logged = true
 }
 catch {
   print(error)
 }
Dead Dormouse