Skip to content

Instantly share code, notes, and snippets.

@branquito
Created May 24, 2018 15:44
Show Gist options
  • Save branquito/313a0ae096a08ee449a389ef22e124eb to your computer and use it in GitHub Desktop.
Save branquito/313a0ae096a08ee449a389ef22e124eb to your computer and use it in GitHub Desktop.
get sub-agencies | jq '.data | group_by(.parent_id)[] | {(.[0].parent_id|tostring): [.[] | .id]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment