How I Decode ISO 8601 Dates from JSON APIs in Swift
JSONDecoder's .iso8601 strategy rejects fractional seconds, and the deferredToDate default isn't what APIs send. Why, and the date strategy I use instead.
Tag · 1 post
Tech Blog Posts tagged “JSON”, newest first.
JSONDecoder's .iso8601 strategy rejects fractional seconds, and the deferredToDate default isn't what APIs send. Why, and the date strategy I use instead.