Skip to content

Instantly share code, notes, and snippets.

@aaiezza
Last active June 19, 2018 18:19
Show Gist options
  • Save aaiezza/a241da2ea617b81ee586140f606de89e to your computer and use it in GitHub Desktop.
Save aaiezza/a241da2ea617b81ee586140f606de89e to your computer and use it in GitHub Desktop.
Retrieve embedded actions with a "type" key
"type" as $filter |
._embedded | to_entries
| map({(if (.value | has($filter)) then .key else empty end): .value|keys})
| add
## Sample command:
# curl --silent https://api.financialwellness.com/task/tasklist/index | jq -Cf findActionsWithType.jq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment