Category to easily convert an NSArray of JSON objects to an NSArray of objects of a given class. More...
#import <JSONRPC_Extensions.h>
Public Member Functions | |
(id) | - initWithJson:itemsClass: |
Designed initializer to create an NSArray of itemsClass objects from an NSArray of JSON (typically NSDictionary) objects. | |
Static Public Member Functions | |
(id) | + arrayWithJson:itemsClass: |
Commodity constructor to create an NSArray of itemsClass objects from an NSArray of JSON (typically NSDictionary) objects. |
Category to easily convert an NSArray of JSON objects to an NSArray of objects of a given class.
For each object in the passed NSArray, the class "itemsClass" will be instanciated with the "initWithJson:" method to create a new object corresponding to the JSON object. So this will finally initialize the NSArray with an array of "itemsClass" objects.