{"action":"closed","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/986","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/986/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/986/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/986","id":93297465,"number":986,"title":"root attribute ignored","user":{"login":"mareczek","id":791743,"avatar_url":"https://avatars.githubusercontent.com/u/791743?v=3","gravatar_id":"","url":"https://api.github.com/users/mareczek","html_url":"https://github.com/mareczek","followers_url":"https://api.github.com/users/mareczek/followers","following_url":"https://api.github.com/users/mareczek/following{/other_user}","gists_url":"https://api.github.com/users/mareczek/gists{/gist_id}","starred_url":"https://api.github.com/users/mareczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mareczek/subscriptions","organizations_url":"https://api.github.com/users/mareczek/orgs","repos_url":"https://api.github.com/users/mareczek/repos","events_url":"https://api.github.com/users/mareczek/events{/privacy}","received_events_url":"https://api.github.com/users/mareczek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-06T14:49:49Z","updated_at":"2015-07-17T16:48:38Z","closed_at":"2015-07-17T16:48:38Z","body":"```ruby\r\nrender json: @current_user, root: 'resource', adapter: :json\r\n```\r\ngives output \r\n```json\r\n{\r\n  \"user\": {\r\n    \"id\": 1,\r\n    \"name\": \"Rambo\"\r\n  }\r\n}\r\n```\r\nwhen expected \r\n```json\r\n{\r\n  \"resource\": {\r\n    \"id\": 1,\r\n    \"name\": \"Rambo\"\r\n  }\r\n}\r\n```"}}