{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/878","labels_url":"https://api.github.com/repos/stedolan/jq/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/878/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/878/events","html_url":"https://github.com/stedolan/jq/issues/878","id":97804882,"number":878,"title":"Opposite of --slurp","user":{"login":"stanch","id":2670454,"avatar_url":"https://avatars.githubusercontent.com/u/2670454?v=3","gravatar_id":"","url":"https://api.github.com/users/stanch","html_url":"https://github.com/stanch","followers_url":"https://api.github.com/users/stanch/followers","following_url":"https://api.github.com/users/stanch/following{/other_user}","gists_url":"https://api.github.com/users/stanch/gists{/gist_id}","starred_url":"https://api.github.com/users/stanch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanch/subscriptions","organizations_url":"https://api.github.com/users/stanch/orgs","repos_url":"https://api.github.com/users/stanch/repos","events_url":"https://api.github.com/users/stanch/events{/privacy}","received_events_url":"https://api.github.com/users/stanch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stedolan/jq/labels/fixed%20in%20master","name":"fixed in master","color":"bfe5bf"},{"url":"https://api.github.com/repos/stedolan/jq/labels/support","name":"support","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T21:22:45Z","updated_at":"2015-07-29T12:40:52Z","closed_at":null,"body":"Given the input\r\n```json\r\n[\r\n  { \"foo\": \"bar\" },\r\n  { \"foo\": \"baz\" }\r\n]\r\n```\r\nit would be nice to have an option to dispense with the outer array (kind of the opposite of `--slurp`).\r\nSo instead of\r\n```\r\njq '.[].foo' input\r\n```\r\nwe could write\r\n```\r\njq --chew '.foo' input"},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/125938278","html_url":"https://github.com/stedolan/jq/issues/878#issuecomment-125938278","issue_url":"https://api.github.com/repos/stedolan/jq/issues/878","id":125938278,"user":{"login":"stanch","id":2670454,"avatar_url":"https://avatars.githubusercontent.com/u/2670454?v=3","gravatar_id":"","url":"https://api.github.com/users/stanch","html_url":"https://github.com/stanch","followers_url":"https://api.github.com/users/stanch/followers","following_url":"https://api.github.com/users/stanch/following{/other_user}","gists_url":"https://api.github.com/users/stanch/gists{/gist_id}","starred_url":"https://api.github.com/users/stanch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanch/subscriptions","organizations_url":"https://api.github.com/users/stanch/orgs","repos_url":"https://api.github.com/users/stanch/repos","events_url":"https://api.github.com/users/stanch/events{/privacy}","received_events_url":"https://api.github.com/users/stanch/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T12:40:52Z","updated_at":"2015-07-29T12:40:52Z","body":"My goal was more conciseness/readability than performance. Many tools output a top-level array instead of one-JSON-object-per-line (for example, `docker inspect`). So I thought a short option for parsing this kind of input would be nice. Regarding your example, I think `jq '.[].foo'` is more readable in its original form, so I’d rather stick to that than do `-cn --stream ...`"}}