Ray,
For now, my strategy to date decoding is configuring
let decoder = JSONDecoder()
decoder.dateDecodingStrategy = JSONDecoder.DateDecodingStrategy.custom({
foo -> Date in
let container = try foo.singleValueContainer()
let dateStr = try container.decode(String.self)
return myCustomDateParse(da
I had a question about date deserialization. If a container (or its
sub-containers) has dates in multiple formats, is the best way to go about it
to decode a string and then run each one through a custom date formatter?
It seems strange to me that dateDecodingStrategy is a top-level decoder