{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1756","repository_url":"https://api.github.com/repos/rails-api/active_model_serializers","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1756/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1756/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1756/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/1756","id":157501682,"number":1756,"title":"Exclude namespace in root key in 0.10?","user":{"login":"ehannes","id":5365246,"avatar_url":"https://avatars.githubusercontent.com/u/5365246?v=3","gravatar_id":"","url":"https://api.github.com/users/ehannes","html_url":"https://github.com/ehannes","followers_url":"https://api.github.com/users/ehannes/followers","following_url":"https://api.github.com/users/ehannes/following{/other_user}","gists_url":"https://api.github.com/users/ehannes/gists{/gist_id}","starred_url":"https://api.github.com/users/ehannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehannes/subscriptions","organizations_url":"https://api.github.com/users/ehannes/orgs","repos_url":"https://api.github.com/users/ehannes/repos","events_url":"https://api.github.com/users/ehannes/events{/privacy}","received_events_url":"https://api.github.com/users/ehannes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/C:%20Namespacing/Versioning","name":"C: Namespacing/Versioning","color":"cccccc"},{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/Documentation","name":"Documentation","color":"fbca04"},{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/S:%20Ready%20for%20PR","name":"S: Ready for PR","color":"009800"},{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/V:%200.10.x","name":"V: 0.10.x","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-30T13:20:33Z","updated_at":"2016-05-31T12:20:04Z","closed_at":null,"body":"Using the `:json` adapter, is there some way to exclude the namespace part from the root key?\r\n\r\nI used version 0.9 before and my JSON representation of a `User` at api/v1/users/1 was something like:\r\n\r\n    { \"user\": { \"id\": 1, \"first_name\": \"Foo\", \"last_name\": \"Bar\" } }\r\n\r\nI recently upgraded to version 0.10 and now I get the namespace included in the root key:\r\n\r\n    { \"api/v1/user\": { \"id\": 1,\"first_name\": \"Foo\", \"last_name\": \"Bar\" } }\r\n\r\nI want the root key to be like before, that is \"user\" instead of \"api/v1/user\"."},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/222671952","html_url":"https://github.com/rails-api/active_model_serializers/issues/1756#issuecomment-222671952","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1756","id":222671952,"user":{"login":"ehannes","id":5365246,"avatar_url":"https://avatars.githubusercontent.com/u/5365246?v=3","gravatar_id":"","url":"https://api.github.com/users/ehannes","html_url":"https://github.com/ehannes","followers_url":"https://api.github.com/users/ehannes/followers","following_url":"https://api.github.com/users/ehannes/following{/other_user}","gists_url":"https://api.github.com/users/ehannes/gists{/gist_id}","starred_url":"https://api.github.com/users/ehannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehannes/subscriptions","organizations_url":"https://api.github.com/users/ehannes/orgs","repos_url":"https://api.github.com/users/ehannes/repos","events_url":"https://api.github.com/users/ehannes/events{/privacy}","received_events_url":"https://api.github.com/users/ehannes/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T12:20:04Z","updated_at":"2016-05-31T12:20:04Z","body":"> So, looks like you can make a pr to update the docs :)\r\n\r\n@bf4 What docs are you suggesting to be updated? The one that @NullVoxPopuli linked to?"}}
{"actor":{"display_login":"ehannes"}}