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 JSON Value In An Object Based Off Filtering From Another Key In jq

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


Debugging Stuff

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

        -- title

Access A JSON Value In An Object Based Off Filtering From Another Key In jq

-- code
-- shell

echo '[ 
    {
      "k": "alfa", 
      "v": "bravo"
    },
    {
      "k": "charlie",
      "v": "delta"
    }
    ]' | jq '.[] | select(.k == "charlie") | .v' 


-- results
-- json

"delta"




-- categories
-- jq 


-- metadata
-- date: 2023-09-29 18:24:17
-- id: 2w5ddkss
-- site: aws
-- type: snippet 
-- status: published