{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/970","labels_url":"https://api.github.com/repos/stedolan/jq/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/970/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/970/events","html_url":"https://github.com/stedolan/jq/issues/970","id":109314154,"number":970,"title":"map_values and select work together?","user":{"login":"rikrd","id":15324,"avatar_url":"https://avatars.githubusercontent.com/u/15324?v=3","gravatar_id":"","url":"https://api.github.com/users/rikrd","html_url":"https://github.com/rikrd","followers_url":"https://api.github.com/users/rikrd/followers","following_url":"https://api.github.com/users/rikrd/following{/other_user}","gists_url":"https://api.github.com/users/rikrd/gists{/gist_id}","starred_url":"https://api.github.com/users/rikrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rikrd/subscriptions","organizations_url":"https://api.github.com/users/rikrd/orgs","repos_url":"https://api.github.com/users/rikrd/repos","events_url":"https://api.github.com/users/rikrd/events{/privacy}","received_events_url":"https://api.github.com/users/rikrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-01T14:41:30Z","updated_at":"2015-10-01T19:41:55Z","closed_at":null,"body":"Hi, shouldn't this work?\r\n\r\nhttps://jqplay.org/jq?q=.toto%20|%20map_values(select(.x==%22t%22))&j={%22toto%22:%20{%22a%22:%20{%22x%22:%20%22t%22},%20%22b%22:%20{%22x%22:%20%22t%22},%20%22c%22:%20{%22x%22:%20%22r%22}}}\r\n\r\nThe output I was expecting was:\r\n```json\r\n\"a\": {\"x\": \"t\"}, \"b\": {\"x\": \"t\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/144826198","html_url":"https://github.com/stedolan/jq/issues/970#issuecomment-144826198","issue_url":"https://api.github.com/repos/stedolan/jq/issues/970","id":144826198,"user":{"login":"nicowilliams","id":604851,"avatar_url":"https://avatars.githubusercontent.com/u/604851?v=3","gravatar_id":"","url":"https://api.github.com/users/nicowilliams","html_url":"https://github.com/nicowilliams","followers_url":"https://api.github.com/users/nicowilliams/followers","following_url":"https://api.github.com/users/nicowilliams/following{/other_user}","gists_url":"https://api.github.com/users/nicowilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/nicowilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicowilliams/subscriptions","organizations_url":"https://api.github.com/users/nicowilliams/orgs","repos_url":"https://api.github.com/users/nicowilliams/repos","events_url":"https://api.github.com/users/nicowilliams/events{/privacy}","received_events_url":"https://api.github.com/users/nicowilliams/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T19:41:55Z","updated_at":"2015-10-01T19:41:55Z","body":"@pkoppstein  *Really*, this is NOT about `empty`.  It's about `|=` not handling RHS expressions that backtrack without producing values (i.e., they evaluate the same as `empty`)."}}