The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Access A Specific Array Index Inside An Object Key In jq

TODO: Pull subtitle into page object
Code
echo '{ 
  "tags": [ 
    {
      "k": "alfa", 
      "v": "bravo"
    },
    {
      "k": "charlie",
      "v": "delta"
    }
  ]
}' | jq '.tags[0]'
Results
{
  "k": "alfa",
  "v": "bravo"
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Access A Specific Array Index Inside An Object Key In jq

-- code
-- bash

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


-- results 
-- json

{
  "k": "alfa",
  "v": "bravo"
}



-- categories
-- jq 

-- metadata
-- date: 2023-09-29 18:14:50
-- id: 2w5c4xtf
-- site: aws
-- type: post
-- status: published