{"action":"created","issue":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/241","labels_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/241/comments","events_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/241/events","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/241","id":113475787,"number":241,"title":"Ability to indicate an array in response parameters.","user":{"login":"jeffutter","id":570037,"avatar_url":"https://avatars.githubusercontent.com/u/570037?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffutter","html_url":"https://github.com/jeffutter","followers_url":"https://api.github.com/users/jeffutter/followers","following_url":"https://api.github.com/users/jeffutter/following{/other_user}","gists_url":"https://api.github.com/users/jeffutter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffutter/subscriptions","organizations_url":"https://api.github.com/users/jeffutter/orgs","repos_url":"https://api.github.com/users/jeffutter/repos","events_url":"https://api.github.com/users/jeffutter/events{/privacy}","received_events_url":"https://api.github.com/users/jeffutter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T23:59:35Z","updated_at":"2016-02-01T20:43:03Z","closed_at":null,"body":"I can't seem to find anywhere this is mentioned in the docs or tests. Is there any way to indicate that parameters are in an array of like objects?\r\n\r\nFor example, with the response\r\n\r\n```json\r\n{\r\n  \"users\": [\r\n    {\r\n      \"id\": 1,\r\n      \"username\": \"foo\"\r\n    },\r\n    {\r\n      \"id\": 2,\r\n      \"username\": \"bar\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nwould have response parameters like:\r\n\r\n```\r\nusers[id]\r\nusers[username]\r\n```\r\n\r\nI would expect some way to output:\r\n\r\n```\r\nusers[][id]\r\nusers[][username]\r\n```\r\n\r\nAm I missing something? Any thoughts?"},"comment":{"url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/comments/178179433","html_url":"https://github.com/zipmark/rspec_api_documentation/issues/241#issuecomment-178179433","issue_url":"https://api.github.com/repos/zipmark/rspec_api_documentation/issues/241","id":178179433,"user":{"login":"oestrich","id":449228,"avatar_url":"https://avatars.githubusercontent.com/u/449228?v=3","gravatar_id":"","url":"https://api.github.com/users/oestrich","html_url":"https://github.com/oestrich","followers_url":"https://api.github.com/users/oestrich/followers","following_url":"https://api.github.com/users/oestrich/following{/other_user}","gists_url":"https://api.github.com/users/oestrich/gists{/gist_id}","starred_url":"https://api.github.com/users/oestrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oestrich/subscriptions","organizations_url":"https://api.github.com/users/oestrich/orgs","repos_url":"https://api.github.com/users/oestrich/repos","events_url":"https://api.github.com/users/oestrich/events{/privacy}","received_events_url":"https://api.github.com/users/oestrich/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T20:43:03Z","updated_at":"2016-02-01T20:43:03Z","body":"I do not believe that this is possible right now. This is the `response_field` DSL? I can't think of a nice way around this, I will be happy to look at a PR if this is still an issue.\r\n\r\nMy first thought is to allow you to pass an extra option to the response_field call specifying exactly what the return scoping/field will be, `:field => \"users[][id]` perhaps. This might be cumbersome quick though."}}