{"action":"created","issue":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/43","repository_url":"https://api.github.com/repos/aryaxt/OCMapper","labels_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/43/comments","events_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/43/events","html_url":"https://github.com/aryaxt/OCMapper/issues/43","id":138458661,"number":43,"title":"Not mapping dictionary","user":{"login":"MeGaPk","id":892182,"avatar_url":"https://avatars.githubusercontent.com/u/892182?v=3","gravatar_id":"","url":"https://api.github.com/users/MeGaPk","html_url":"https://github.com/MeGaPk","followers_url":"https://api.github.com/users/MeGaPk/followers","following_url":"https://api.github.com/users/MeGaPk/following{/other_user}","gists_url":"https://api.github.com/users/MeGaPk/gists{/gist_id}","starred_url":"https://api.github.com/users/MeGaPk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeGaPk/subscriptions","organizations_url":"https://api.github.com/users/MeGaPk/orgs","repos_url":"https://api.github.com/users/MeGaPk/repos","events_url":"https://api.github.com/users/MeGaPk/events{/privacy}","received_events_url":"https://api.github.com/users/MeGaPk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-04T12:03:16Z","updated_at":"2016-03-14T15:33:47Z","closed_at":null,"body":"Hello!\r\nMaybe its bug, i wanna report it.\r\n\r\nSo, we have Class: \r\n```\r\n@interface TFResponse : NSObject\r\n@property(nonatomic, assign) BOOL status;\r\n@property(nonatomic, weak) NSDictionary *data;\r\n@end\r\n```\r\n\r\n\r\nAnd DICT: \r\n```\r\n{\r\n    data =     {\r\n        code = 0;\r\n        message = \"test message\";\r\n    };\r\n    status = 0;\r\n}\r\n```\r\n\r\nAfter use code:\r\n```\r\nTFResponse *response = [TFResponse objectFromDictionary:responseObject];\r\n                   NSLog(@\"API: TFResponse status: %d\", response.status);\r\n                   NSLog(@\"API: TFResponse data: %@\", response.data);\r\n//                   response.data = responseObject[@\"data\"];\r\n```\r\n\r\n\r\nWe have result: \r\n```\r\nAPI: TFResponse status: 0\r\nAPI: TFResponse data: {\r\n}\r\n```\r\n\r\nFor fix that, i use: \r\n```\r\nresponse.data = responseObject[@\"data\"];\r\n```\r\n\r\nBut maybe it is a bug, and so I decided to report it.\r\n\r\nWait answer.\r\nBest regards,\r\nIvan."},"comment":{"url":"https://api.github.com/repos/aryaxt/OCMapper/issues/comments/196370193","html_url":"https://github.com/aryaxt/OCMapper/issues/43#issuecomment-196370193","issue_url":"https://api.github.com/repos/aryaxt/OCMapper/issues/43","id":196370193,"user":{"login":"aryaxt","id":3460069,"avatar_url":"https://avatars.githubusercontent.com/u/3460069?v=3","gravatar_id":"","url":"https://api.github.com/users/aryaxt","html_url":"https://github.com/aryaxt","followers_url":"https://api.github.com/users/aryaxt/followers","following_url":"https://api.github.com/users/aryaxt/following{/other_user}","gists_url":"https://api.github.com/users/aryaxt/gists{/gist_id}","starred_url":"https://api.github.com/users/aryaxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryaxt/subscriptions","organizations_url":"https://api.github.com/users/aryaxt/orgs","repos_url":"https://api.github.com/users/aryaxt/repos","events_url":"https://api.github.com/users/aryaxt/events{/privacy}","received_events_url":"https://api.github.com/users/aryaxt/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T15:33:47Z","updated_at":"2016-03-14T15:33:47Z","body":"Hi, unfortunately the library doesn't map dictionaries automatically. However you could write a transformer\r\n```\r\n[mappingProvider mapFromDictionaryKey:@\"data\" toPropertyKey:@\"data\" forClass:[TFResponse class] withTransformer:^id(id currentNode, id parentNode) {\r\n    return currentNode;\r\n}];\r\n```\r\n\r\nWill add this as an enhancement, thanks"}}