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()
}
Jolly Jellyfish