jed_fox1’s avatarjed_fox1’s Twitter Archive — № 640

  1. …in reply to @geekykaran
    @geekykaran @shauneba @scriptableapp For fetching JSON you can make a struct with keys matching those in the returned object and use this code: let data = try? JSONDecoder().decode(MyStruct.self, from: Data(contentsOf: URL(string: "URL GOES HERE")!))