Decode ISO 8601 API Dates with JSONDecoder in Swift
Set JSONDecoder.dateDecodingStrategy to .iso8601 so Swift decodes API date strings directly into Date values.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Set JSONDecoder.dateDecodingStrategy to .iso8601 so Swift decodes API date strings directly into Date values.
Learn how to set up a single JSONDecoder that converts snake_case keys to camelCase properties and parses ISO 8601 timestamps with fractional seconds, plus the pitfalls to watch for.