RestKit 0.22 : how to map only firstObject of an array?
问题 I am receiving more data than needed: I only want to map first object of an array of objects. Using RestKit 0.22, how to map the following Json: { "name": "foobar", "tags": ["tag1", "tag2", "tag3"] } With the following model: @property (nonatomic, retain) NSString *name; @property (nonatomic, retain) NSString *firstTag; To map name , I have this code: RKEntityMapping *mapping = [RKEntityMapping mappingForEntityForName:@"MyObjectModel" inManagedObjectStore:[RKManagedObjectStore defaultStore]];