Alamofire.upload(data, with: request) .responseJSON(queue: dispatchQueue(), options: .allowFragments) { response in in this case if data is Json encode data let data = try! JSONEncoder().encode(redirectRequest) can we log it with ?