{"action":"created","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/238","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/238/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/238/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/238","id":110815524,"number":238,"title":"Using toJSON to return dictionary of specified properties only?","user":{"login":"u10int","id":7958,"avatar_url":"https://avatars.githubusercontent.com/u/7958?v=3","gravatar_id":"","url":"https://api.github.com/users/u10int","html_url":"https://github.com/u10int","followers_url":"https://api.github.com/users/u10int/followers","following_url":"https://api.github.com/users/u10int/following{/other_user}","gists_url":"https://api.github.com/users/u10int/gists{/gist_id}","starred_url":"https://api.github.com/users/u10int/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u10int/subscriptions","organizations_url":"https://api.github.com/users/u10int/orgs","repos_url":"https://api.github.com/users/u10int/repos","events_url":"https://api.github.com/users/u10int/events{/privacy}","received_events_url":"https://api.github.com/users/u10int/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T20:42:11Z","updated_at":"2015-10-11T20:32:05Z","closed_at":"2015-10-11T20:32:05Z","body":"Thanks for the awesome mapping library!\r\n\r\nIs there an easy way to return a dictionary of certain properties using a method similar to `toJSON()` for a Mappable object? For instance, I only want to send a payload of properties that have changed to an api instead of the entire object's data, most of which had never changed. So sending everything via `toJSON()` isn't always ideal.\r\n\r\nOr maybe there's an easy way to return the mapped key from a Mappable instance property that the API expects?"},"comment":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/comments/147243168","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/238#issuecomment-147243168","issue_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/238","id":147243168,"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-10-11T20:32:05Z","updated_at":"2015-10-11T20:32:05Z","body":"Hi @u10int, unfortunately, at the moment there is no way to do this."}}