JSONEncodable

public protocol JSONEncodable

Type can be converted to JSON.

  • Encodes the reciever into JSON.

    Declaration

    Swift

    func toJSON() -> JSON.Value