{"action":"created","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/114","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/114/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/114/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/114","id":71817169,"number":114,"title":"A little help with nested objects needed","user":{"login":"pfitz","id":3062911,"avatar_url":"https://avatars.githubusercontent.com/u/3062911?v=3","gravatar_id":"","url":"https://api.github.com/users/pfitz","html_url":"https://github.com/pfitz","followers_url":"https://api.github.com/users/pfitz/followers","following_url":"https://api.github.com/users/pfitz/following{/other_user}","gists_url":"https://api.github.com/users/pfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/pfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfitz/subscriptions","organizations_url":"https://api.github.com/users/pfitz/orgs","repos_url":"https://api.github.com/users/pfitz/repos","events_url":"https://api.github.com/users/pfitz/events{/privacy}","received_events_url":"https://api.github.com/users/pfitz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-29T08:46:59Z","updated_at":"2015-04-29T13:52:41Z","closed_at":"2015-04-29T13:45:26Z","body":"I need a little guidance with mapping nested objects. I managed to use ObjectMapper with built in types perfect. But how do I map nested custom objects?\r\n\r\nGiven something like this:\r\n\r\n```swift\r\nclass A {\r\n    let b: B\r\n    let c: [C]\r\n}\r\n```\r\nAs I said I managed to map B and C alone. But how do I map it from inside A? Do I need to write a custom transform? Or do I need to make B and C conform to some protocol? I am guessing it is quite simple but I just can't get my head around it. "},"comment":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/comments/97431705","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/114#issuecomment-97431705","issue_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/114","id":97431705,"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-04-29T13:52:41Z","updated_at":"2015-04-29T13:52:41Z","body":"Glad to help :+1: "}}