Home

Access A Specific Array Index Inside An Object Key In jq

bash
echo '{ 
  "tags": [ 
    {
      "k": "alfa", 
      "v": "bravo"
    },
    {
      "k": "charlie",
      "v": "delta"
    }
  ]
}' | jq '.tags[0]'
results full
~ fin ~