I'm a beginner to RestKit and I'm finding difficult to get the hang of it, beats using standard cocoa to do webservice response parsing, but still feels lightyears behind .net or java...
Anyhow, to the point. I have a WCF webservice which returns something like this:
{"GetSiteMapResult":"iVBORw0KGgoAAAANSUhEUgAAB\/cAAAf3CAIAAACicn4JAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7P0JoF1HcSeMS2\/X0y5ZepK8St5ly7HxgsxiB2TH"}
GetSiteMapResult followed by a large string.
How can I parse this into an NSString using ReskKit? I tried adding a mapping, but I'm not sure what the code would be for this, for instance all examples are along the lines of:
RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[myClass class]];
[mapping mapKeyForPath:@"node" toAttribute:@"attributeInMyClass"];
[[RKObjectManager sharedManager].mappingProvider setMapping:mapping forKeyPath:@"RootNodeInReturnJSON"];
But since this is an object I'm returning in the service response, only a string, I'm not sure how to do this.