jq json find property with given name anywhere in tree

raw

code.sh

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

History