YMJSONDataDecodable

public protocol YMJSONDataDecodable : Decodable

A protocol that facilitates faster and easier decoding of JSON.

  • init(throwingWithJSONData:) Default implementation

    Initializes a value from JSON Data using JSONDecoder.

    Default Implementation

    Declaration

    Swift

    init(throwingWithJSONData jsonData: Data) throws

    Parameters

    jsonData

    Required. The object’s JSON representation (as Data).

  • init(jsonData:) Default implementation

    Initializes a value from JSON Data using JSONDecoder.

    • If something goes wrong, nil is returned.

    Default Implementation

    Declaration

    Swift

    init?(jsonData: Data)

    Parameters

    jsonData

    Required. JSON Data.

YMJSONDataDecodable