JSONCustomDateFormatterEncodable
public protocol JSONCustomDateFormatterEncodable: JSONEncodable
JSONEncodable child protocol that allows the user to define a cust dateFormatter. There is no default dateFormatter defined here so any object conforming to the protocol will need to add this
-
Customizeable date formatter. This will need to be implemented by conforming objects
Declaration
Swift
static var dateFormatter: DateFormatter
-
jsonEncoder
Extension method- return JSONEncoder with custom date formatter that is user definable
Declaration
Swift
static var jsonEncoder: JSONEncoder