# jq

## 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 the same list and get just the computer short name (not FQDN)
```
jq -r '.nodes[] | select(.kind == "Computer") | .label | split(".")[0]' 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 
```
