Avatar
You mean about Codable? struct Empty: Codable {} ... JSONDecoder().decode([Empty].self, from: data) I think this way can work well.