RSDJSONValue

public protocol RSDJSONValue

Protocol for converting objects to JSON serializable objects.

  • Return a JSON-type object. Elements may be any one of the JSON types.

    Declaration

    Swift

    func jsonObject() -> RSDJSONSerializable
  • Encode the object.

    Declaration

    Swift

    func encode(to encoder: Encoder) throws