JsonConvertible
public protocol JsonConvertible: DictionaryConvertible
Objects that can be created fom a JSON-string or be converted to one, conform to this protocol.
The used datatypes should be in the format as returned from the StackExchange API. (for example Date
as UNIX timestamp)
Note
This protocol inherits from DictionaryConvertible
-
Initializes the object from a JSON-string
Declaration
Swift
init?(jsonString json: String)
-
Returns the JSON-representation of the object
Declaration
Swift
var jsonString: String?