How to use jq to get a value from two possible paths?
How to use jq to get a value from two possible paths? I wanted to use jq to get a specific value b from two possible paths (and these two only). So, basically, I wanted to say jq ‘(path1 OR path2) | .b’ which should work if b is at one of the two paths …