Skip to content

Instantly share code, notes, and snippets.

@cori
Created May 12, 2021 10:42
Show Gist options
  • Save cori/b9bf761c90065a9477d15af0e341dc3f to your computer and use it in GitHub Desktop.
Save cori/b9bf761c90065a9477d15af0e341dc3f to your computer and use it in GitHub Desktop.
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