JSONResponse
@objc(FSNetworkJSONResponse)
public class JSONResponse : NSObject
This object represents a network JSON response.
-
The URL request sent to the server.
Declaration
Swift
@objc public let request: URLRequest?
-
The server’s response to the URL request.
Declaration
Swift
@objc public let response: HTTPURLResponse?
-
The JSON returned by the server.
Declaration
Swift
@objc public let json: [String : Any]?
-
Optionally, some associated context.
Declaration
Swift
@objc public let context: Any?
-
Returns the associated error value if the result if it is a failure,
nil
otherwise.Declaration
Swift
@objc public var error: Swift.Error?