Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

Possible to use has() with nested keys?

$
0
0

Is it possible to use the jq has() function with nested keys?

jq -r -c 'has("a.b")'<<< '{"a":{"b":"hello"}}'

this returns false, I have also tried

has("a|b")has("a[b]")

Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>