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 An Array 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[]'
Results
{
  "k": "alfa",
  "v": "bravo"
}
{
  "k": "charlie",
  "v": "delta"
}

Debugging Stuff

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

        -- title

Access An Array Inside An Object Key In jq

-- code
-- bash

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


-- results
-- json

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



-- categories
-- jq 

-- metadata
-- date: 2023-09-29 18:12:45
-- id: 2w5boqwn
-- site: aws
-- type: snippet 
-- status: published