SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use jq 'keys[]'. For example:
jq 'keys[]'
echo '{"example1" : 1, "example2" : 2, "example3" : 3}' | jq 'keys[]'
Will output a line separated list:
"example1" "example2" "example3"