Access to first key of a nested json using jq and obtain its value
I have the following JSON: { "query": "rest ec", "elected_facts_mapping": { "AWS": { "ECS": { "attachments": [ "restart_ecs" ], "text": [ "Great!" ] } } }, "top_facts_mapping": { "AWS": { "ECS": { "attachments": [ "restart_ecs" ], "text": [ "Great!" ]…