Request
-
Returns a JSON object contained in a result type constructed from the response data using
JSONSerializationwith the specified reading options.Declaration
Swift
public static func serializeResponseSwiftyJSON( options: JSONSerialization.ReadingOptions, response: HTTPURLResponse?, data: Data?, error: Error?) -> Result<JSON>Parameters
optionsThe JSON serialization reading options. Defaults to
.allowFragments.responseThe response from the server.
dataThe data returned from the server.
errorThe error already encountered if it exists.
Return Value
The result data type.
View on GitHub
Install in Dash
Request Extension Reference