title: Mapping array of string inside array of objects
body: <p>I have this json object that I'm trying to map:</p>
  
  <pre><code>{
      totalresults: 1,
      results: [
                {
                    sources: [
                              "The Blog",
                              "The website",
                              ],
                    description: "Some description."",
                    subjects: [
                               "Education"
                               ],
                    imageurl: "image.jpg",
                    authorid: 44303,
                    istail: false,
                    tailcount: 0,
                    displayname: "Name of me"
                }
            ]
  }
  </code></pre>
  
  <p><strong>I've created a SearchPerPage object:</strong></p>
  
  <pre><code>@interface RestSearchPerPage : NSObject
  @property (strong, nonatomic) NSNumber *totalResults;
  @property (strong, nonatomic) NSArray *results;
  @end
  </code></pre>
  
  <p><strong>I've created a SearchResults object:</strong></p>
  
  <pre><code>@interface SearchResults : NSObject
  @property (strong, nonatomic) NSArray *sources;
  @property (strong, nonatomic) NSArray *subjects;
  @property (strong, nonatomic) NSString *content;
  @property (strong, nonatomic) NSString *imageUrl;
  @property (strong, nonatomic) NSString *authorId;
  @property (strong, nonatomic) NSString *displayName;
  @property (strong, nonatomic) NSNumber *isTail;
  @property (strong, nonatomic) NSNumber *tailCount;
  @end
  </code></pre>
  
  <p>I'm mapping the objects just fine, but when I'm trying to map the <code>NSArray *sources</code> and <code>NSArray *subjects</code> I always get <code>NULL</code>.</p>
  
  <p><strong>This is my last mapping attempt on sources:</strong></p>
  
  <pre><code>RKObjectMapping *searchResultsMapping = [RKObjectMapping mappingForClass:[SearchResults class]];
  [searchResultsMapping addAttributeMappingsFromDictionary:@{ @"sources" : @"sources",
                                                              @"subjects" : @"subjects",
                                                              @"description" : @"content",
                                                              @"imageurl" : @"imageUrl",
                                                              @"authorid" : @"authorId",
                                                              @"displayname" : @"displayName",
                                                              @"istail" : @"isTail",
                                                              @"tailcount" : @"tailCount" }];
  
  RKObjectMapping *searchPerPageMapping = [RKObjectMapping mappingForClass:[SearchPerPage class]];
  [searchPerPageMapping addAttributeMappingsFromDictionary:@{ @"totalresults" : @"totalResults" }];
  [searchPerPageMapping addPropertyMapping:[RKRelationshipMapping relationshipMappingFromKeyPath:@"results" toKeyPath:@"results" withMapping:searchResultsMapping]];
  
  
  [[RKObjectManager sharedManager] addResponseDescriptor:[RKResponseDescriptor responseDescriptorWithMapping:searchPerPageMapping
                                                                                                      method:self.method
                                                                                                 pathPattern:kGetSearchPerPage
                                                                                                     keyPath:nil
                                                                                                 statusCodes:self.statusCode]];
  </code></pre>
  
  <p>Please help me because I'm lost, just don't know what to do next - have no answer to this problem. Thanks in advance.</p>