ReactiveCocoa support for widely used JSONModel library by Marin Todorov. It was designed to work with libraries for AFNetworking and their corresponding RACExtensions.
Install the library with CocoaPods.
pod 'JSONModel-RACExtensions'
Import the RACJSONModel.h file:
#import "RACJSONModel.h"
The most important method in RACJSONModel
is parseSignalForObject:
, which will take a parameter of next types:
NSDictionary
NSArray
RACTuple
.Method must be called on it's corresponding JSONModel
class. If the model cannot parse the first level of keys (in case of NSDictionary
or RACTuple
) it will try to parse the contents of each key recursively (only first level).
Dal Rupnik
JSONModel-RACExtensions is available under the MIT license. See LICENSE file for more information.