Created
July 19, 2021 16:00
-
-
Save mtintes/4488abd5558a519fde682514923f6c2c to your computer and use it in GitHub Desktop.
useful jq
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
cat file.json| jq '.thing' | jq 'keys' | |
#all the keys under "thing" | |
{ | |
"thing": { | |
"prop1": "value", | |
"prop2": "value" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment