Given the following JSON:
{
\"someKey\":\"someValue\",
\"otherKey\":\"otherValue\",
\"features\":[
\"feature1\",
\"feature2\",
\"f
You need to use a nil key path:
RKEntityMapping *featureMapping = [RKEntityMapping mappingForEntityForName:...];
[featureMapping addPropertyMapping:[RKAttributeMapping attributeMappingFromKeyPath:nil toKeyPath:@"name"]];
featureMapping.identificationAttributes = @[ @"name" ];
Then, on your top level object mapping, define the relationship:
[topMapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@"features" toKeyPath:@"features" withMapping:featureMapping]];
In your feature (in the model), myTopLevelObject
should be defined as a bi-directional relationship to the top level object.