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

JQ: exclude specified embedded keys

$
0
0

From the following input:

{"key1": {"key_x": "1",        ..."key_z": "2"    },"key2": {"key_x": "2",        ..."key_z": "3"    }}

I would like to exclude all keys with the name "key_x" so the result should be

{"key1": {        ..."key_z": "2"    },"key2": {        ..."key_z": "3"    }}

Viewing all articles
Browse latest Browse all 524

Trending Articles



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