Last active
June 19, 2018 18:19
-
-
Save aaiezza/a241da2ea617b81ee586140f606de89e to your computer and use it in GitHub Desktop.
Retrieve embedded actions with a "type" key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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