skip to Main Content

How to use responseDecodable instead of responseJSON using Alamofire 6 – Ios swift

One of my apps no longer works due to JSON serialisation failing when using Alamofire. 'responseJSON(queue:dataPreprocessor:emptyResponseCodes:emptyRequestMethods:options:completionHandler:)' is deprecated: responseJSON deprecated and will be removed in Alamofire 6. Use responseDecodable instead. For code with the following lines AF.request(url, method: .post, parameters:…

VIEW QUESTION
Back To Top
Search