{"action":"created","issue":{"url":"https://api.github.com/repos/tomj74/chunk-templates/issues/5","labels_url":"https://api.github.com/repos/tomj74/chunk-templates/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tomj74/chunk-templates/issues/5/comments","events_url":"https://api.github.com/repos/tomj74/chunk-templates/issues/5/events","html_url":"https://github.com/tomj74/chunk-templates/issues/5","id":91121710,"number":5,"title":"Best way to handle BigDecimal?","user":{"login":"slisznia","id":1666246,"avatar_url":"https://avatars.githubusercontent.com/u/1666246?v=3","gravatar_id":"","url":"https://api.github.com/users/slisznia","html_url":"https://github.com/slisznia","followers_url":"https://api.github.com/users/slisznia/followers","following_url":"https://api.github.com/users/slisznia/following{/other_user}","gists_url":"https://api.github.com/users/slisznia/gists{/gist_id}","starred_url":"https://api.github.com/users/slisznia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slisznia/subscriptions","organizations_url":"https://api.github.com/users/slisznia/orgs","repos_url":"https://api.github.com/users/slisznia/repos","events_url":"https://api.github.com/users/slisznia/events{/privacy}","received_events_url":"https://api.github.com/users/slisznia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-26T01:36:26Z","updated_at":"2015-06-27T22:07:30Z","closed_at":"2015-06-26T17:02:21Z","body":"One of our POJO classes has a BigDecimal public field. How to add a hook to output its value? Thanks!"},"comment":{"url":"https://api.github.com/repos/tomj74/chunk-templates/issues/comments/116160338","html_url":"https://github.com/tomj74/chunk-templates/issues/5#issuecomment-116160338","issue_url":"https://api.github.com/repos/tomj74/chunk-templates/issues/5","id":116160338,"user":{"login":"tomj74","id":2747799,"avatar_url":"https://avatars.githubusercontent.com/u/2747799?v=3","gravatar_id":"","url":"https://api.github.com/users/tomj74","html_url":"https://github.com/tomj74","followers_url":"https://api.github.com/users/tomj74/followers","following_url":"https://api.github.com/users/tomj74/following{/other_user}","gists_url":"https://api.github.com/users/tomj74/gists{/gist_id}","starred_url":"https://api.github.com/users/tomj74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomj74/subscriptions","organizations_url":"https://api.github.com/users/tomj74/orgs","repos_url":"https://api.github.com/users/tomj74/repos","events_url":"https://api.github.com/users/tomj74/events{/privacy}","received_events_url":"https://api.github.com/users/tomj74/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T22:07:30Z","updated_at":"2015-06-27T22:07:30Z","body":"almost forgot:\r\n\r\n```java\r\n    public class BigDecimalFilter extends ObjectFilter\r\n    {\r\n        public String getFilterName()\r\n        {\r\n            return \"bignum\";\r\n        }\r\n\r\n        public Object transformObject(Chunk chunk, Object object, FilterArgs args)\r\n        {\r\n            if (object instanceof BigDecimal) {\r\n                BigDecimal big = (BigDecimal)object;\r\n                return big.toPlainString();\r\n            } else {\r\n                return \"ERR: NOT A BIG DECIMAL\";\r\n            }\r\n        }\r\n    }\r\n```"}}