Welcome to the Linux Foundation Forum!

jq in linux

Hi,

I'm new to jq
I got a jason file(projects.json) which look like

{
"all": {
"a_client_project": {
"resource": 10,
"daystodeliver": 70,
"complexity": "high",
"Sites": 1,
},
"b_client_project": {
"resource": 5,
"daystodeliver": 100,
"complexity": "mid",
"Sites":3,
},
"a_internel_project": {
"resource": 1,
"daystodeliver": 75,
"complexity": "low",
"Sites”:1,
},
}

and I need the values of keys 'resource' & 'daystodeliver' for "client" named sub objects in linux terminal like

a:10/70 , b:5/100

thanks
Arthur

Categories

Upcoming Training