1.2.0
Adds jsonDecoderFactory
to provide your own JSONDecoder
.
network.jsonDecoderFactory = {
let decoder = JSONDecoder()
let df = DateFormatter()
df.locale = Locale(identifier: "en_US_POSIX")
df.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
decoder.dateDecodingStrategy = .formatted(df)
return decoder
}