{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1073","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1073/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1073/events","html_url":"https://github.com/rails-api/active_model_serializers/pull/1073","id":102410324,"number":1073,"title":"Create NestedJson adapter.","user":{"login":"kayhide","id":1730718,"avatar_url":"https://avatars.githubusercontent.com/u/1730718?v=3","gravatar_id":"","url":"https://api.github.com/users/kayhide","html_url":"https://github.com/kayhide","followers_url":"https://api.github.com/users/kayhide/followers","following_url":"https://api.github.com/users/kayhide/following{/other_user}","gists_url":"https://api.github.com/users/kayhide/gists{/gist_id}","starred_url":"https://api.github.com/users/kayhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayhide/subscriptions","organizations_url":"https://api.github.com/users/kayhide/orgs","repos_url":"https://api.github.com/users/kayhide/repos","events_url":"https://api.github.com/users/kayhide/events{/privacy}","received_events_url":"https://api.github.com/users/kayhide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T15:59:46Z","updated_at":"2015-08-23T12:39:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1073","html_url":"https://github.com/rails-api/active_model_serializers/pull/1073","diff_url":"https://github.com/rails-api/active_model_serializers/pull/1073.diff","patch_url":"https://github.com/rails-api/active_model_serializers/pull/1073.patch"},"body":"I needed an adapter to serialize models with multi-depth relations for my project.\r\nSo I wrote it.\r\n\r\nI think this might be helpful for some people.\r\n"},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/133826750","html_url":"https://github.com/rails-api/active_model_serializers/pull/1073#issuecomment-133826750","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1073","id":133826750,"user":{"login":"kayhide","id":1730718,"avatar_url":"https://avatars.githubusercontent.com/u/1730718?v=3","gravatar_id":"","url":"https://api.github.com/users/kayhide","html_url":"https://github.com/kayhide","followers_url":"https://api.github.com/users/kayhide/followers","following_url":"https://api.github.com/users/kayhide/following{/other_user}","gists_url":"https://api.github.com/users/kayhide/gists{/gist_id}","starred_url":"https://api.github.com/users/kayhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayhide/subscriptions","organizations_url":"https://api.github.com/users/kayhide/orgs","repos_url":"https://api.github.com/users/kayhide/repos","events_url":"https://api.github.com/users/kayhide/events{/privacy}","received_events_url":"https://api.github.com/users/kayhide/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T12:39:55Z","updated_at":"2015-08-23T12:39:55Z","body":"Hi,\r\nI have checked the discussion on #921.\r\n\r\nThis adapter raises an error if nesting is too deep, typically in case of circular relations.\r\nI think this is a desirable behavior for many cases.\r\n\r\nIf you want to change the limit depth, you can do it just giving an argument `limit_depth: xx` to the adapter, or setting default value `NestedJson.default_limit_depth = xx`."}}