{"action":"created","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/220","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/220/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/220/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/220","id":107929415,"number":220,"title":"ObjectMapper seems like not support generic type?","user":{"login":"bjzhou","id":3062432,"avatar_url":"https://avatars.githubusercontent.com/u/3062432?v=3","gravatar_id":"","url":"https://api.github.com/users/bjzhou","html_url":"https://github.com/bjzhou","followers_url":"https://api.github.com/users/bjzhou/followers","following_url":"https://api.github.com/users/bjzhou/following{/other_user}","gists_url":"https://api.github.com/users/bjzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/bjzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjzhou/subscriptions","organizations_url":"https://api.github.com/users/bjzhou/orgs","repos_url":"https://api.github.com/users/bjzhou/repos","events_url":"https://api.github.com/users/bjzhou/events{/privacy}","received_events_url":"https://api.github.com/users/bjzhou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-23T14:14:58Z","updated_at":"2015-09-29T15:31:18Z","closed_at":"2015-09-23T16:23:03Z","body":"I have a struct like\r\n\r\n```\r\nstruct Result<T> {\r\n    var code = 0\r\n    var msg = \"\"\r\n    var data: T?\r\n}\r\n```\r\n\r\nHow can it work?"},"comment":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/comments/144095158","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/220#issuecomment-144095158","issue_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/220","id":144095158,"user":{"login":"tristanhimmelman","id":1562134,"avatar_url":"https://avatars.githubusercontent.com/u/1562134?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanhimmelman","html_url":"https://github.com/tristanhimmelman","followers_url":"https://api.github.com/users/tristanhimmelman/followers","following_url":"https://api.github.com/users/tristanhimmelman/following{/other_user}","gists_url":"https://api.github.com/users/tristanhimmelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanhimmelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanhimmelman/subscriptions","organizations_url":"https://api.github.com/users/tristanhimmelman/orgs","repos_url":"https://api.github.com/users/tristanhimmelman/repos","events_url":"https://api.github.com/users/tristanhimmelman/events{/privacy}","received_events_url":"https://api.github.com/users/tristanhimmelman/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T15:31:18Z","updated_at":"2015-09-29T15:31:18Z","body":"ObjectMapper cannot handle a generic type that is sometimes Mappable and sometimes not. So you will have to structure your code differently to make things work in this case"}}