Swift Urlsession Remote Json

[Solved] Swift Urlsession Remote Json | Swift - Code Explorer | yomemimo.com
Question : swift urlsession remote json

Answered by : jolly-jellyfish-wggbwk5s8ave

if let url = URL(string: "https://api.myjson.com/bins/yfua8") { URLSession.shared.dataTask(with: url) { data, response, error in if let data = data { if let jsonString = String(data: data, encoding: .utf8) { print(jsonString) } } }.resume()
}

Source : https://calvinw.medium.com/using-urlsession-to-retrieve-json-in-swift-1-getting-started-d929f3a49c67 | Last Update : Sat, 30 Apr 22

Answers related to swift urlsession remote json

Code Explorer Popular Question For Swift