{"action":"created","issue":{"url":"https://api.github.com/repos/Zewo/Reflection/issues/20","repository_url":"https://api.github.com/repos/Zewo/Reflection","labels_url":"https://api.github.com/repos/Zewo/Reflection/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Zewo/Reflection/issues/20/comments","events_url":"https://api.github.com/repos/Zewo/Reflection/issues/20/events","html_url":"https://github.com/Zewo/Reflection/issues/20","id":391867501,"node_id":"MDU6SXNzdWUzOTE4Njc1MDE=","number":20,"title":"Reflection of deep nested object","user":{"login":"mapo80","id":1677958,"node_id":"MDQ6VXNlcjE2Nzc5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1677958?v=4","gravatar_id":"","url":"https://api.github.com/users/mapo80","html_url":"https://github.com/mapo80","followers_url":"https://api.github.com/users/mapo80/followers","following_url":"https://api.github.com/users/mapo80/following{/other_user}","gists_url":"https://api.github.com/users/mapo80/gists{/gist_id}","starred_url":"https://api.github.com/users/mapo80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapo80/subscriptions","organizations_url":"https://api.github.com/users/mapo80/orgs","repos_url":"https://api.github.com/users/mapo80/repos","events_url":"https://api.github.com/users/mapo80/events{/privacy}","received_events_url":"https://api.github.com/users/mapo80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T19:58:22Z","updated_at":"2018-12-18T15:12:29Z","closed_at":null,"author_association":"NONE","body":"I have a complex classes of this type\r\n\r\n`public class Info: Codable {\r\n    \r\n    public var user: UserModel?\r\n    public var data: String?\r\n\r\n}\r\n\r\npublic struct UserModel: Codable {\r\n    public var username: String?\r\n    public var name: String?    \r\n}`\r\n\r\nI want to access sub properties in this way \"user.info\", is it possibile?\r\n\r\n`var obj = Info()\r\nlet xxx: String? = try? get(\"user.info\", from: obj)`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Zewo/Reflection/issues/comments/448253621","html_url":"https://github.com/Zewo/Reflection/issues/20#issuecomment-448253621","issue_url":"https://api.github.com/repos/Zewo/Reflection/issues/20","id":448253621,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODI1MzYyMQ==","user":{"login":"bradhilton","id":4875137,"node_id":"MDQ6VXNlcjQ4NzUxMzc=","avatar_url":"https://avatars2.githubusercontent.com/u/4875137?v=4","gravatar_id":"","url":"https://api.github.com/users/bradhilton","html_url":"https://github.com/bradhilton","followers_url":"https://api.github.com/users/bradhilton/followers","following_url":"https://api.github.com/users/bradhilton/following{/other_user}","gists_url":"https://api.github.com/users/bradhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/bradhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradhilton/subscriptions","organizations_url":"https://api.github.com/users/bradhilton/orgs","repos_url":"https://api.github.com/users/bradhilton/repos","events_url":"https://api.github.com/users/bradhilton/events{/privacy}","received_events_url":"https://api.github.com/users/bradhilton/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T15:12:29Z","updated_at":"2018-12-18T15:12:29Z","author_association":"MEMBER","body":"Sorry, this isn't supported. If you know what the object type is like in this example you could always use key paths:\r\n```\r\nlet obj = Info()\r\nlet xxx = obj[keyPath: \\.user?.info]\r\n```"}}
{"actor":{"display_login":"bradhilton"}}