{"action":"created","issue":{"url":"https://api.github.com/repos/Mantle/Mantle/issues/612","labels_url":"https://api.github.com/repos/Mantle/Mantle/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/Mantle/Mantle/issues/612/comments","events_url":"https://api.github.com/repos/Mantle/Mantle/issues/612/events","html_url":"https://github.com/Mantle/Mantle/issues/612","id":106324109,"number":612,"title":"Parse nested model using Mantle, nested object remains dictionary","user":{"login":"andr3a88","id":6755254,"avatar_url":"https://avatars.githubusercontent.com/u/6755254?v=3","gravatar_id":"","url":"https://api.github.com/users/andr3a88","html_url":"https://github.com/andr3a88","followers_url":"https://api.github.com/users/andr3a88/followers","following_url":"https://api.github.com/users/andr3a88/following{/other_user}","gists_url":"https://api.github.com/users/andr3a88/gists{/gist_id}","starred_url":"https://api.github.com/users/andr3a88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andr3a88/subscriptions","organizations_url":"https://api.github.com/users/andr3a88/orgs","repos_url":"https://api.github.com/users/andr3a88/repos","events_url":"https://api.github.com/users/andr3a88/events{/privacy}","received_events_url":"https://api.github.com/users/andr3a88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T11:42:24Z","updated_at":"2015-09-14T13:35:02Z","closed_at":null,"body":"I've a problem with nested object model with Mantle. In the JSON response, profile becomes an object of MTLUser and twitterProfile dictionary it should be of type MTLTwitterUser. \r\n\r\nThe problem is that twitterProfile remains a dicitonary instead of a MTLTwitterUser.\r\n\r\nI did step through `[MTLJSONAdapter transformerForModelPropertiesOfClass:MTLTwitterUser.class]` and return nil but I cannot understand why.\r\n\r\nGreetings and please keep up the great work!\r\n\r\nJSON response\r\n\r\n\t{\r\n\t\tdata =     {\r\n\t\t\tprofile =         {\r\n\t\t\t\tname = \"\";\r\n\t\t\t\ttoken = \"\";\r\n\t\t\t\ttokenSecret = \"\";\r\n\t\t\t\ttwitterId = \"\";\r\n\t\t\t\ttwitterProfile =             {\r\n\t\t\t\t\t\"created_at\" = \"Fri Aug 30 09:54:46 +0200 2013\";\r\n\t\t\t\t\t........\r\n\t\t\t\t};\r\n\t\t\t\tusername = \"\";\r\n\t\t\t};\r\n\t\t};\r\n\t\tstatus = success;\r\n\t}\r\n\r\n MTLUser.h\r\n\r\n    @interface MTLUser : MTLModel <MTLJSONSerializing>\r\n    @property (nonatomic, copy) NSString *name;\r\n    @property (nonatomic, copy) NSString *twitterId;\r\n    @property (nonatomic, copy) NSString *token;\r\n    @property (nonatomic, copy) NSString *tokenSecret;\r\n    @property (nonatomic, strong) MTLTwitterUser *twitterProfile;\r\n    @end\r\n    \r\nMTLUser.m\r\n\r\n\t+ (NSDictionary *)JSONKeyPathsByPropertyKey {\r\n\r\n           return @{\r\n             @\"name\": @\"name\",\r\n             @\"twitterId\": @\"twitterId\",\r\n\t\t\t\t....\r\n             @\"twitterProfile\": @\"twitterProfile\",\r\n\t\t\t\t...\r\n             };\r\n\t\t}\r\n\r\n\t#pragma mark - JSONTransformer\r\n\r\n\t+ (NSValueTransformer *)twitterProfileJSONTransformer {\r\n\t    return [MTLJSONAdapter transformerForModelPropertiesOfClass:MTLTwitterUser.class];\r\n\t}\r\n\r\n MTLTwitterUser.h\r\n\r\n    @interface MTLTwitterUser : MTLModel <MTLJSONSerializing>\r\n    @property (nonatomic, copy) NSString *idStr;\r\n    .....\r\n    ....\r\n    @end\r\n"},"comment":{"url":"https://api.github.com/repos/Mantle/Mantle/issues/comments/140077359","html_url":"https://github.com/Mantle/Mantle/issues/612#issuecomment-140077359","issue_url":"https://api.github.com/repos/Mantle/Mantle/issues/612","id":140077359,"user":{"login":"andr3a88","id":6755254,"avatar_url":"https://avatars.githubusercontent.com/u/6755254?v=3","gravatar_id":"","url":"https://api.github.com/users/andr3a88","html_url":"https://github.com/andr3a88","followers_url":"https://api.github.com/users/andr3a88/followers","following_url":"https://api.github.com/users/andr3a88/following{/other_user}","gists_url":"https://api.github.com/users/andr3a88/gists{/gist_id}","starred_url":"https://api.github.com/users/andr3a88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andr3a88/subscriptions","organizations_url":"https://api.github.com/users/andr3a88/orgs","repos_url":"https://api.github.com/users/andr3a88/repos","events_url":"https://api.github.com/users/andr3a88/events{/privacy}","received_events_url":"https://api.github.com/users/andr3a88/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T13:35:02Z","updated_at":"2015-09-14T13:35:02Z","body":"I'm using Mantle with cocoapods:\r\npod 'Mantle', '~> 2.0'"}}