Filtering an array of objects where the user_id is 2199 and outputting just the username key:
user_id
2199
username
cat profiles.json | jq -c -r '.[] | select(.user_id | contains(2199)) | .username'