Get a JSON value from a string in a JSON object
I do a curl to Cloudflare and I do get a response. One of the records is:
{
"id": "xxxxxxxxxxx",
"name": "_ctic_managed.xxxxxxxxx.net",
"type": "TXT",
"content": "{\"controller\":\"strrl.dev/cloudflare-tunnel-ingress-controller\",\"tunnel\":\"test-tunnel-pmx\"}",
"proxiable": false,
"proxied": false,
"ttl": 1,
"settings": {},
"meta": {},
"comment": null,
"tags": [],
"created_on": "2026-03-06T13:47:47.615756Z",
"modified_on": "2026-03-06T13:47:47.615756Z"
}
I have tried a lot, but I want only the records with "tunnel":"test-tunnel-pmx" in .content
How to get only the records with the text "tunnel":"test-tunnel-pmx" in .content with jq?