jq json find property with given name anywhere in tree

revision 668be6545732984493c40a29f14592525969f209

raw

code.sh

1
2
3
# look for property "question" anywhere in the json tree:
 
$ cat qa.json | jq '..|.question?' 

History