Skip to content

Instantly share code, notes, and snippets.

@jryio
Created July 26, 2025 12:42
Show Gist options
  • Save jryio/fbc3f2f3f1df8530b33ce951e6e6d680 to your computer and use it in GitHub Desktop.
Save jryio/fbc3f2f3f1df8530b33ce951e6e6d680 to your computer and use it in GitHub Desktop.
JQ Strucutre
jq -r '[path(..)|map(if type=="number" then "[]" else tostring end)|join(".")|split(".[]")|join("[]")]|unique|map("."+.)|.[]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment