Avatar
@JohnLight You can get the JSON data in the following way, although I do not recommend it because it contains a synchronous networking operation. If you do it in a GUI app, it is better to use URLSession instead of Data(contentsOf:) to get JSON data from a server. import Foundation struct Empty: Codable {} let url = URL(string: "https://...") // Set an appropriate URL let jsonData = try! Data(contentsOf: url) let decoded = try! JSONDecoder().decode([Empty].self, from: jsonData) print(decoded) (edited)