{"action":"created","issue":{"url":"https://api.github.com/repos/Mantle/Mantle/issues/305","labels_url":"https://api.github.com/repos/Mantle/Mantle/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/Mantle/Mantle/issues/305/comments","events_url":"https://api.github.com/repos/Mantle/Mantle/issues/305/events","html_url":"https://github.com/Mantle/Mantle/issues/305","id":31274935,"number":305,"title":"Aggregate JSONKeyPathsByPropertyKey  From Subclasses","user":{"login":"adammlevy","id":599680,"avatar_url":"https://avatars.githubusercontent.com/u/599680?v=3","gravatar_id":"","url":"https://api.github.com/users/adammlevy","html_url":"https://github.com/adammlevy","followers_url":"https://api.github.com/users/adammlevy/followers","following_url":"https://api.github.com/users/adammlevy/following{/other_user}","gists_url":"https://api.github.com/users/adammlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/adammlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammlevy/subscriptions","organizations_url":"https://api.github.com/users/adammlevy/orgs","repos_url":"https://api.github.com/users/adammlevy/repos","events_url":"https://api.github.com/users/adammlevy/events{/privacy}","received_events_url":"https://api.github.com/users/adammlevy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mantle/Mantle/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-04-10T19:46:17Z","updated_at":"2015-09-07T13:59:18Z","closed_at":"2014-04-10T21:00:05Z","body":"Given the following class hierarchy where B subclasses A subclasses MTLModel,\r\nhow can I utilize the JSONKeyPath in A when creating an instance of class B. \r\n```objc\r\n// A.h\r\n@interface A : MTLModel<MTLJSONSerializing>\r\n@property (nonatomic, strong) NSString *aProperty;\r\n@end\r\n\r\n// A.m\r\n+ (NSDictionary *)JSONKeyPathsByPropertyKey {\r\n     return @{@\"aProperty\" : @\"a_property\"};\r\n}\r\n\r\n//////////////\r\n\r\n// B.h\r\n@interface B : A\r\n@property (nonatomic, strong) NSString *bProperty;\r\n@end\r\n\r\n// B.m\r\n+ (NSDictionary *)JSONKeyPathsByPropertyKey {\r\n     return @{@\"bProperty\" : @\"b_property\"};\r\n}\r\n\r\n///\r\n\r\nid jsonData = @{@\"a_property\" : @\"a\", @\"b_property\" : @\"b\"};\r\nB *b = [MTLJSONAdapter modelOfClass:[B class] fromJSONDictionary:jsonData error:&error];\r\n\r\n// b.aProperty is nil (should be \"a\")\r\n// b.bProperty is \"b\"\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mantle/Mantle/issues/comments/138305901","html_url":"https://github.com/Mantle/Mantle/issues/305#issuecomment-138305901","issue_url":"https://api.github.com/repos/Mantle/Mantle/issues/305","id":138305901,"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-07T13:59:18Z","updated_at":"2015-09-07T13:59:18Z","body":"to do the same on mantle 2.0?"}}