JSONDecodable

public protocol JSONDecodable : Decodable

A type that can decode itself from a JSON representation.

  • init(from:) Default implementation

    Creates a SpotifyKit type from the specified JSON data.

    Note

    The default implementation of this method decodes date values using the ISO 8601 timestamp format specified by the Web API. If your need another date decoding strategy, you must provide your own custom implementation.

    Default Implementation

    Undocumented

    Declaration

    Swift

    init(from jsonData: Data) throws

    Parameters

    jsonData

    The data containing the JSON-encoded Spotify object.