home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Select An Object From A JSON Array In jq

September 2023
Code
echo '[ 
    {
      "k": "alfa", 
      "v": "bravo"
    },
    {
      "k": "charlie",
      "v": "delta"
    }
  ]' | jq '.[] | select(.k == "charlie")'
[TODO: Result]
═══ § ═══