JsonString

@objc
public protocol JsonString : NSObjectProtocol

Protocol to convert an object to a Json string

  • Convert to JSON string

    This function throws an error if JSON encoding process fails

    Declaration

    Swift

    @objc(toJson:)
    func toJson() throws -> String