{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1285","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1285/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1285/events","html_url":"https://github.com/rails-api/active_model_serializers/pull/1285","id":112431867,"number":1285,"title":"Add regression test for fields in JSON/Attributes adapter","user":{"login":"vasilakisfil","id":590575,"avatar_url":"https://avatars.githubusercontent.com/u/590575?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilakisfil","html_url":"https://github.com/vasilakisfil","followers_url":"https://api.github.com/users/vasilakisfil/followers","following_url":"https://api.github.com/users/vasilakisfil/following{/other_user}","gists_url":"https://api.github.com/users/vasilakisfil/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilakisfil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilakisfil/subscriptions","organizations_url":"https://api.github.com/users/vasilakisfil/orgs","repos_url":"https://api.github.com/users/vasilakisfil/repos","events_url":"https://api.github.com/users/vasilakisfil/events{/privacy}","received_events_url":"https://api.github.com/users/vasilakisfil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T18:36:30Z","updated_at":"2015-10-20T18:45:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1285","html_url":"https://github.com/rails-api/active_model_serializers/pull/1285","diff_url":"https://github.com/rails-api/active_model_serializers/pull/1285.diff","patch_url":"https://github.com/rails-api/active_model_serializers/pull/1285.patch"},"body":"Regression test showing how fields fails when there are associations"},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/149662918","html_url":"https://github.com/rails-api/active_model_serializers/pull/1285#issuecomment-149662918","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1285","id":149662918,"user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T18:45:10Z","updated_at":"2015-10-20T18:45:10Z","body":"So, for the record:\r\n```ruby\r\n  --- expected\r\n  +++ actual\r\n  @@ -1 +1 @@\r\n  -{:posts=>[{:id=>1}, {:id=>2}]}\r\n  +{:posts=>[{:id=>1, :comments=>[], :blog=>{:id=>999}, :author=>{:id=>1}}, {:id=>2, :comments=>[], :blog=>{:id=>999}, :author=>{:id=>1}}]}\r\n```"}}