I get a long list of such arrays
{
"id": "byu6g6c4cjys5mdkg5znh8ju8c",
"create_at": 1511875272294,
"update_at": 1511875272294,
"delete_at": 0,
"display_name": "BMA",
"name": "BMA",
"description": "",
"email": "aleksandar.ivanov@random.com",
"type": "O",
"company_name": "",
"allowed_domains": "",
"invite_id": "gdgz1tbxuinntx1fbr1ax7kehy",
"allow_open_invite": false,
"scheme_id": null
}
I want to get by JQ only the ID where the name is BMA.
At the moment I parse " jq -r '.[]["name"]" and I can filter the output from curl by name and I will get "BMA" and also 100 other names, but I need to filter only the ID where name is =BMA.
Any ideas?
Asked by WhoAmI
(177 rep)
Nov 29, 2018, 05:32 PM
Last activity: Oct 16, 2022, 11:42 AM
Last activity: Oct 16, 2022, 11:42 AM