{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-views/issues/158","repository_url":"https://api.github.com/repos/grails/grails-views","labels_url":"https://api.github.com/repos/grails/grails-views/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-views/issues/158/comments","events_url":"https://api.github.com/repos/grails/grails-views/issues/158/events","html_url":"https://github.com/grails/grails-views/issues/158","id":296559234,"number":158,"title":"Json Custom Converters not available when using g.render method","user":{"login":"sudosandwich3","id":21696281,"avatar_url":"https://avatars0.githubusercontent.com/u/21696281?v=4","gravatar_id":"","url":"https://api.github.com/users/sudosandwich3","html_url":"https://github.com/sudosandwich3","followers_url":"https://api.github.com/users/sudosandwich3/followers","following_url":"https://api.github.com/users/sudosandwich3/following{/other_user}","gists_url":"https://api.github.com/users/sudosandwich3/gists{/gist_id}","starred_url":"https://api.github.com/users/sudosandwich3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudosandwich3/subscriptions","organizations_url":"https://api.github.com/users/sudosandwich3/orgs","repos_url":"https://api.github.com/users/sudosandwich3/repos","events_url":"https://api.github.com/users/sudosandwich3/events{/privacy}","received_events_url":"https://api.github.com/users/sudosandwich3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-12T23:16:49Z","updated_at":"2018-02-21T19:39:59Z","closed_at":null,"author_association":"NONE","body":"Given a Custom Converter for myCustomProp, the following works correctly:\r\n\r\n```\r\nmodel {\r\n  MyClass myClass\r\n}\r\njson {\r\n  myCustomProp myClass.myCustomProp\r\n}\r\n```\r\n\r\nBut when i try to do:\r\n```\r\nmodel {\r\n  MyClass myClass\r\n}\r\njson g.render(myClass, [includes:['myCustomProp'])\r\n```\r\nor\r\n```\r\nmodel {\r\n  MyClass myClass\r\n}\r\njson g.render(myClass, [includes:['someOtherProp']) {\r\n  myCustomProp myClass.myCustomProp\r\n}\r\n```\r\nThe converter is not applied.  \r\n\r\nLooking at the source code it looks like DefaultJsonGenerator is being created without the converters being set by the static block in JsonOutput.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-views/issues/comments/367445852","html_url":"https://github.com/grails/grails-views/issues/158#issuecomment-367445852","issue_url":"https://api.github.com/repos/grails/grails-views/issues/158","id":367445852,"user":{"login":"jameskleeh","id":1583789,"avatar_url":"https://avatars2.githubusercontent.com/u/1583789?v=4","gravatar_id":"","url":"https://api.github.com/users/jameskleeh","html_url":"https://github.com/jameskleeh","followers_url":"https://api.github.com/users/jameskleeh/followers","following_url":"https://api.github.com/users/jameskleeh/following{/other_user}","gists_url":"https://api.github.com/users/jameskleeh/gists{/gist_id}","starred_url":"https://api.github.com/users/jameskleeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameskleeh/subscriptions","organizations_url":"https://api.github.com/users/jameskleeh/orgs","repos_url":"https://api.github.com/users/jameskleeh/repos","events_url":"https://api.github.com/users/jameskleeh/events{/privacy}","received_events_url":"https://api.github.com/users/jameskleeh/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T19:39:59Z","updated_at":"2018-02-21T19:39:59Z","author_association":"COLLABORATOR","body":"@sudosandwich3 Please upload an example project that reproduces the issue"}}
{"actor":{"display_login":"jameskleeh"}}