Answers for "swift urlsession remote json"

0

swift urlsession remote json

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()
}
Posted by: Guest on April-23-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language