{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1738","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1738/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1738/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1738/events","html_url":"https://github.com/ruby-grape/grape/issues/1738","id":293580394,"number":1738,"title":"Does Grape care about fast_jsonapi?","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars1.githubusercontent.com/u/542335?v=4","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"labels":[{"id":283653356,"url":"https://api.github.com/repos/ruby-grape/grape/labels/chore","name":"chore","color":"207de5","default":false},{"id":116653795,"url":"https://api.github.com/repos/ruby-grape/grape/labels/you%20can%20help","name":"you can help","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T15:50:11Z","updated_at":"2018-02-21T19:11:31Z","closed_at":null,"author_association":"OWNER","body":"People want to know what they need to do to enable https://github.com/Netflix/fast_jsonapi on their Grape projects. Or do they at all? Grape uses whatever JSON provider is available and maybe all the gains are in the object serialization part and not in pure json generation. Potentially this issue belongs in other presenter libraries.   \r\n\r\nhttps://medium.com/netflix-techblog/fast-json-api-serialization-with-ruby-on-rails-7c06578ad17f\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/367436746","html_url":"https://github.com/ruby-grape/grape/issues/1738#issuecomment-367436746","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1738","id":367436746,"user":{"login":"EmCousin","id":9846489,"avatar_url":"https://avatars2.githubusercontent.com/u/9846489?v=4","gravatar_id":"","url":"https://api.github.com/users/EmCousin","html_url":"https://github.com/EmCousin","followers_url":"https://api.github.com/users/EmCousin/followers","following_url":"https://api.github.com/users/EmCousin/following{/other_user}","gists_url":"https://api.github.com/users/EmCousin/gists{/gist_id}","starred_url":"https://api.github.com/users/EmCousin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmCousin/subscriptions","organizations_url":"https://api.github.com/users/EmCousin/orgs","repos_url":"https://api.github.com/users/EmCousin/repos","events_url":"https://api.github.com/users/EmCousin/events{/privacy}","received_events_url":"https://api.github.com/users/EmCousin/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T19:11:31Z","updated_at":"2018-02-21T19:11:31Z","author_association":"NONE","body":"I'm using Grape for many projects of mine. To answer this issue, I personally ended up enriching the [SerializableHash formatter](https://github.com/ruby-grape/grape/blob/master/lib/grape/formatter/serializable_hash.rb) by creating a custom formatter, available in [this gist](https://gist.github.com/EmCousin/9a648c0effc669c7e6d9a41b3f42b98e).\r\n\r\nFor a given object, if this object is a model instance or a model collection, it basically seeks for the corresponding serializer according to the Rails ActiveModel::Serializer conventions.\r\n\r\nHope this helps. Although it certainly can be improved a lot, but for now, it does the trick for me :)"}}
{"actor":{"display_login":"EmCousin"}}