Objective C:
RKObjectMapping *responseMapping = [RKObjectMapping mappingForClass:[Response class]];
[responseMapping addAttributeMappingsFromArray:@[@"status",@"description"]];
[manager addResponseDescriptorsFromArray:@[
[RKResponseDescriptor responseMapping
pathPattern:nil
keyPath:@"Details"
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)]
]];
JSON:
{
"Details" : {
"status":"2012",
"description":"Not valid"
},
"Address":{
...
}
}
The above is the response that i am getting .It has "Details" as well as "Address".
Details mapping is shown in the code above.Address mapping is done in same manner but currently not that important.
in mapping results i get both the objects, ie details as well as address .
I want the json string for DetailMapping from operation. In RKObjectRequestOperation *operation i am able to get the complete json string that includes details as well as address but i want json string related only to details mapping.