Declared in NSObject+JSON.h
NSObject+JSON.m

Overview

Additional functionality for NSObject that make it easy to turn NSData to json data on a background thread.

Instance Methods

processJSON:options:withCompletion:

Process JSON data in the background with a completion block.

- (void)processJSON:(NSData *)data options:(NSJSONReadingOptions)options withCompletion:(TKJSONCompletionBlock)block

Parameters

data

The JSON data.

options

An json parsing options to be included will parsing the JSON data.

block

The block that will be performed upon the parsing of the json data. The process data will be included as an object with the selector.

Declared In

NSObject+JSON.h

processJSON:withCompletion:

Process JSON data in the background with a completion block.

- (void)processJSON:(NSData *)data withCompletion:(TKJSONCompletionBlock)block

Parameters

data

The JSON data.

block

The block that will be performed upon the parsing of the json data. The process data will be included as an object with the selector.

Declared In

NSObject+JSON.h