{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYKit/issues/168","repository_url":"https://api.github.com/repos/ibireme/YYKit","labels_url":"https://api.github.com/repos/ibireme/YYKit/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYKit/issues/168/comments","events_url":"https://api.github.com/repos/ibireme/YYKit/issues/168/events","html_url":"https://github.com/ibireme/YYKit/issues/168","id":145216860,"number":168,"title":"属性和key大小写匹配的问题","user":{"login":"goodcyg","id":5400137,"avatar_url":"https://avatars.githubusercontent.com/u/5400137?v=3","gravatar_id":"","url":"https://api.github.com/users/goodcyg","html_url":"https://github.com/goodcyg","followers_url":"https://api.github.com/users/goodcyg/followers","following_url":"https://api.github.com/users/goodcyg/following{/other_user}","gists_url":"https://api.github.com/users/goodcyg/gists{/gist_id}","starred_url":"https://api.github.com/users/goodcyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodcyg/subscriptions","organizations_url":"https://api.github.com/users/goodcyg/orgs","repos_url":"https://api.github.com/users/goodcyg/repos","events_url":"https://api.github.com/users/goodcyg/events{/privacy}","received_events_url":"https://api.github.com/users/goodcyg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-01T15:55:16Z","updated_at":"2016-04-03T19:24:57Z","closed_at":null,"body":"如果属性和json里的key，大小写不匹配的话，json转模型就是失败的。但是一个项目这种情况很多啊，改起来是个体力活。你对这个问题是咋看？啥好的解决方案？"},"comment":{"url":"https://api.github.com/repos/ibireme/YYKit/issues/comments/205039692","html_url":"https://github.com/ibireme/YYKit/issues/168#issuecomment-205039692","issue_url":"https://api.github.com/repos/ibireme/YYKit/issues/168","id":205039692,"user":{"login":"ibireme","id":839283,"avatar_url":"https://avatars.githubusercontent.com/u/839283?v=3","gravatar_id":"","url":"https://api.github.com/users/ibireme","html_url":"https://github.com/ibireme","followers_url":"https://api.github.com/users/ibireme/followers","following_url":"https://api.github.com/users/ibireme/following{/other_user}","gists_url":"https://api.github.com/users/ibireme/gists{/gist_id}","starred_url":"https://api.github.com/users/ibireme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibireme/subscriptions","organizations_url":"https://api.github.com/users/ibireme/orgs","repos_url":"https://api.github.com/users/ibireme/repos","events_url":"https://api.github.com/users/ibireme/events{/privacy}","received_events_url":"https://api.github.com/users/ibireme/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T19:24:57Z","updated_at":"2016-04-03T19:24:57Z","body":"如果你愿意按照协议来，在 model 的 interface 里面声明了 \\<YYModel\\>，那这就是 \"定义成协议，也按协议方式来\" 了。\r\n\r\n\\<YYModel\\> 协议里面的方法都是可选的，我在内部做检测时，仍然还是需要针对每个方法做判断，而不能直接判断是否实现了 \\<YYModel\\> 协议。所以，这里也允许了使用者不去写这个 `\\<YYModel\\>`。\r\n\r\n在 NSObject 上定义方法也行，但这会污染 NSObject 的函数命名空间，还会带来`未实现方法`的编译警告。"}}