RSDJSONNumber

public protocol RSDJSONNumber : Decodable, Encodable

RSDJSONNumber implements converting a Swift number to an Objective-C NSNumber.

  • Return an NSNumber for use in json encoding

    Declaration

    Swift

    func jsonNumber() -> NSNumber?