{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYModel/issues/66","repository_url":"https://api.github.com/repos/ibireme/YYModel","labels_url":"https://api.github.com/repos/ibireme/YYModel/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYModel/issues/66/comments","events_url":"https://api.github.com/repos/ibireme/YYModel/issues/66/events","html_url":"https://github.com/ibireme/YYModel/issues/66","id":141938270,"number":66,"title":"解析对象属性为null","user":{"login":"597579501","id":6228678,"avatar_url":"https://avatars.githubusercontent.com/u/6228678?v=3","gravatar_id":"","url":"https://api.github.com/users/597579501","html_url":"https://github.com/597579501","followers_url":"https://api.github.com/users/597579501/followers","following_url":"https://api.github.com/users/597579501/following{/other_user}","gists_url":"https://api.github.com/users/597579501/gists{/gist_id}","starred_url":"https://api.github.com/users/597579501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/597579501/subscriptions","organizations_url":"https://api.github.com/users/597579501/orgs","repos_url":"https://api.github.com/users/597579501/repos","events_url":"https://api.github.com/users/597579501/events{/privacy}","received_events_url":"https://api.github.com/users/597579501/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ibireme/YYModel/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-03-18T18:03:43Z","updated_at":"2016-07-20T05:10:07Z","closed_at":null,"body":"{\r\n    code = 0;\r\n    user =     {\r\n \r\n        avatar = \"<null>\";\r\n        description = \"<null>\";\r\n  \r\n        \"wechat_id\" = \"<null>\";\r\n        \"weibo_id\" = \"<null>\";\r\n    };\r\n}\r\n\r\n有个疑问。从服务端返回的数据得到的字符串json包含有nil的。\r\n在解析的过程中。获取得到对象会有nil的情况。然后程序中使用到这个对象的属性就会carsh。\r\n那么我觉得不应该成属性地方逐一判断。想在入口处处理这个问题。\r\n那么我有个疑问就是。YY大神怎么考虑这个问题的。是否有控制忽略字符串为nil转换@”“的属性开关呢。还是故意就这样让使用YYModel的人自己去处理呢。\r\n虽然我已经从你源码处解决这个问题。但还是想和你确认一下。交流一下你的心得。我已经提过很多问题了。还是再次谢谢你"},"comment":{"url":"https://api.github.com/repos/ibireme/YYModel/issues/comments/233839606","html_url":"https://github.com/ibireme/YYModel/issues/66#issuecomment-233839606","issue_url":"https://api.github.com/repos/ibireme/YYModel/issues/66","id":233839606,"user":{"login":"SummertimSadness","id":7335992,"avatar_url":"https://avatars.githubusercontent.com/u/7335992?v=3","gravatar_id":"","url":"https://api.github.com/users/SummertimSadness","html_url":"https://github.com/SummertimSadness","followers_url":"https://api.github.com/users/SummertimSadness/followers","following_url":"https://api.github.com/users/SummertimSadness/following{/other_user}","gists_url":"https://api.github.com/users/SummertimSadness/gists{/gist_id}","starred_url":"https://api.github.com/users/SummertimSadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SummertimSadness/subscriptions","organizations_url":"https://api.github.com/users/SummertimSadness/orgs","repos_url":"https://api.github.com/users/SummertimSadness/repos","events_url":"https://api.github.com/users/SummertimSadness/events{/privacy}","received_events_url":"https://api.github.com/users/SummertimSadness/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T05:10:07Z","updated_at":"2016-07-20T05:10:07Z","body":"其实还有一个问题，就是model的增量更新，比如一个usermodel的参数很多，有时候我们可能会通过接口更新其中的一部分数据，如果如果把null都置为nil了，那么增量更新的时候只能自己写方法来实现。最近就遇到了这个问题，很纠结"}}
{"actor":{"display_login":"SummertimSadness"}}