We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
5ce871d
Decode array of objects by skipping corrupted ones.
// JSON array is: [1, "2", 3] let numbers = try JSONDecoder().decodeArrayIgnoringErrors(of: Int.self, from: jsonData) // numbers is [1, 3]