Conforms to NSObject
Declared in SPTJSONDecoding.h

Overview

An object that supports decoding from JSON.

Tasks

Properties

decodedJSONObject

Returns the original decoded object (typically an NSDictionary, but not always) that was used to create the object. Useful for serialising.

@property (nonatomic, readonly, copy) id decodedJSONObject

Declared In

SPTJSONDecoding.h

Instance Methods

initWithDecodedJSONObject:error:

Initialise the object with the given decoded JSON response from the web API (typically an NSDictionary, but not always).

- (id)initWithDecodedJSONObject:(id)decodedObject error:(NSError **)error

Parameters

decodedObject

The decoded representation of the object.

error

An error pointer that will contain an error if a problem occurred.

Return Value

Returns the initalised object, or nil if a problem occurred.

Declared In

SPTJSONDecoding.h