Encodable

public extension Encodable
  • Returns a JSON serialized dictionary of the encodable object.

    This method encodes the encodable object to a data object and serializes it using JSONSerialization.jsonObject(with:, options:)

    Declaration

    Swift

    var json: [String : Any] { get }

    Return Value

    A serialized json object dictionary.