Inherits from NSObject
Declared in SPTJSONDecoding.h

Overview

Helper class for decoding JSON from the Spotify web API. You shouldn’t need to use this in your application — use SPTRequest instead.

Class Methods

SPObjectFromDecodedJSON:error:

Convert an object decoded from JSON into a Spotify SDK metadata object.

+ (id)SPObjectFromDecodedJSON:(id)decodedJson error:(NSError **)error

Parameters

decodedJson

The object decoded from JSON.

error

A pointer to an error object that will be filled if an error occurs.

Return Value

The generated object, or nil if an error occurs.

Declared In

SPTJSONDecoding.h

SPObjectFromEncodedJSON:error:

Convert an object from the given JSON data into a Spotify SDK metadata object.

+ (id)SPObjectFromEncodedJSON:(NSData *)json error:(NSError **)error

Parameters

json

The JSON data.

error

A pointer to an error object that will be filled if an error occurs.

Return Value

The generated object, or nil if an error occurs.

Declared In

SPTJSONDecoding.h

partialSPObjectFromDecodedJSON:error:

Convert an object decoded from JSON into a partial Spotify SDK metadata object.

+ (id)partialSPObjectFromDecodedJSON:(id)decodedJson error:(NSError **)error

Parameters

decodedJson

The object decoded from JSON.

error

A pointer to an error object that will be filled if an error occurs.

Return Value

The generated object, or nil if an error occurs.

Declared In

SPTJSONDecoding.h

partialSPObjectFromEncodedJSON:error:

Convert an object from the given JSON data into a partial Spotify SDK metadata object.

+ (id)partialSPObjectFromEncodedJSON:(NSData *)json error:(NSError **)error

Parameters

json

The JSON data.

error

A pointer to an error object that will be filled if an error occurs.

Return Value

The generated object, or nil if an error occurs.

Declared In

SPTJSONDecoding.h