{"action":"created","issue":{"url":"https://api.github.com/repos/netresearch/jsonmapper/issues/48","labels_url":"https://api.github.com/repos/netresearch/jsonmapper/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/netresearch/jsonmapper/issues/48/comments","events_url":"https://api.github.com/repos/netresearch/jsonmapper/issues/48/events","html_url":"https://github.com/netresearch/jsonmapper/issues/48","id":124975108,"number":48,"title":"Support public getters","user":{"login":"steffenbr","id":2162388,"avatar_url":"https://avatars.githubusercontent.com/u/2162388?v=3","gravatar_id":"","url":"https://api.github.com/users/steffenbr","html_url":"https://github.com/steffenbr","followers_url":"https://api.github.com/users/steffenbr/followers","following_url":"https://api.github.com/users/steffenbr/following{/other_user}","gists_url":"https://api.github.com/users/steffenbr/gists{/gist_id}","starred_url":"https://api.github.com/users/steffenbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffenbr/subscriptions","organizations_url":"https://api.github.com/users/steffenbr/orgs","repos_url":"https://api.github.com/users/steffenbr/repos","events_url":"https://api.github.com/users/steffenbr/events{/privacy}","received_events_url":"https://api.github.com/users/steffenbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-05T14:16:46Z","updated_at":"2016-01-05T14:18:48Z","closed_at":null,"body":"It would be very convenient if the jsonmapper would have support for public getters as well. The requirement of making fields `public` would become obsolete. Also, it would help to maintain a constant (JSON) API while being able to change the class. Example:\r\n\r\n```PHP\r\n<?php\r\nclass Address\r\n{\r\n    private $street;\r\n    // ...\r\n\r\n    /**\r\n     * @var string\r\n     */\r\n    public function getStreet()\r\n    {\r\n        return $this->street;\r\n    }\r\n\r\n    // ...\r\n}\r\n?>\r\n```"},"comment":{"url":"https://api.github.com/repos/netresearch/jsonmapper/issues/comments/169012580","html_url":"https://github.com/netresearch/jsonmapper/issues/48#issuecomment-169012580","issue_url":"https://api.github.com/repos/netresearch/jsonmapper/issues/48","id":169012580,"user":{"login":"cweiske","id":59036,"avatar_url":"https://avatars.githubusercontent.com/u/59036?v=3","gravatar_id":"","url":"https://api.github.com/users/cweiske","html_url":"https://github.com/cweiske","followers_url":"https://api.github.com/users/cweiske/followers","following_url":"https://api.github.com/users/cweiske/following{/other_user}","gists_url":"https://api.github.com/users/cweiske/gists{/gist_id}","starred_url":"https://api.github.com/users/cweiske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cweiske/subscriptions","organizations_url":"https://api.github.com/users/cweiske/orgs","repos_url":"https://api.github.com/users/cweiske/repos","events_url":"https://api.github.com/users/cweiske/events{/privacy}","received_events_url":"https://api.github.com/users/cweiske/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T14:18:48Z","updated_at":"2016-01-05T14:18:48Z","body":"How does the getter help jsonmapper *set* the variable on the object?"}}