# jq

Published 2025-03-20

# Parse a list of computers from a BloodHound .json file and export just a list of computers

jq -r '.nodes[] | select(.kind == "Computer") | .label' computers.json | sort

# Parse a computers.json file from BloodHound and then pull out just computer names and their descriptions

jq -r '.data[] | "\(.Properties.name | split(".")[0] | ascii_upcase),\(.Properties.description)"' computers.json | sort