Related questions
Using jq to fetch key value from json output
I have a file that looks as below:
{
"repositories": [
{
"id": "156c48fc-f208-43e8-a631-4d12deb89fa4",
"namespace": "rhel12",
"namespaceType": "organization",
"name": "rhel6.6",
"shortDescription": "",
"visibility": "public"
},
{
"id": "f359b5d2-cb3a-4bb3-8aff-d879d51f1a04",
"…
jq parsing get value
I need to get some values from a json file. I need to get a array (dimmer1, dimmer2)
Somebody any idea?
{
"devices": {
"dimmer1": {
"protocol": ["kaku_dimmer"],
"state": "off",
"dimlevel": 1
},
"dimmer2": {
"protocol": ["kaku_dimmer"],
"state": "off",
"dimlevel": 1
}
}