Last active
May 27, 2018 12:08
-
-
Save branquito/72df5bd8757685e01e6fdc1f374594da to your computer and use it in GitHub Desktop.
http prompt example, combined with `jq` to show only fields of type string
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
get sub-agencies | jq '[.data[] | paths(strings) | add] | unique[]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similarly you can check for other types as well, by changing
paths(strings)
topaths(numbers)
, to get all the numbersIf data does not come in the same shape, try leaving out squared braces or similar