iphone - How to add Attribute Mappings From json like this using RestKit? -


i using below add attribute mappings

rkentitymapping *entitymapping = [rkentitymapping mappingforentityforname:@"timeline" inmanagedobjectstore:managedobjectstore];     [entitymapping addattributemappingsfromdictionary:@{@"title": @"title"}]; 

but how add attachments.title mappings? attachments array of dictionarys. want access title in attachments.

[     {         "category": @"tech",         "attachments": [             {                 "title": "mac home",                 "media": [                     {                         "sizes": {                             "small": [                                 48,                                 48                             ]                         },                         "type": "image"                     }                 ],                 "type": "group",             }         ],         "title": "joined group",     } ] 

you can't map array contents directly same object, there no way deal multiplicity. need add new entity model , relationship , configure mapping entity , relationship configuration between 2 mappings.