Created
May 12, 2021 10:42
-
-
Save cori/b9bf761c90065a9477d15af0e341dc3f to your computer and use it in GitHub Desktop.
jq pathfinder (from https://dev.to/kevcui/three-jq-tips-you-may-need-to-know-5bf5)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r 'paths(scalars) as $p | "." + ([([$p[] | tostring] | join(".")), (getpath($p) | tojson)] | join(": "))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment