wait, maybe it's...
$ jq '. | .messages.thank_you' < strings.json
darn it! how about
$ jq '[].messages.thank_you' < strings.json
!??@@!
But if I were watching Star Trek, they would definitely just ask the computer to grab the fields and it would be a done deal!
Plus, you know, I actually learn how jq works and will need to ask the Magic Sky Oracle less often, in the future.
What's wrong with the docs? Relatedly, do you actually look up every filter and argument used in your AI-generated sample code in the jq docs?
i have some flash cards if you'd like. a teensy amount of effort pays huge dividends with swiss knife software like this (and things like matplotlib, tar CLI options, etc)
% /usr/bin/jq --version
jq-1.6-159-apple-gcff5336-dirtyhttps://github.com/apple-oss-distributions/distribution-macO... hasn't been updated with a "jq" directory yet
> If the working tree has local modification "-dirty" is appended to it.
and one can see their invocation of --dirty here: https://github.com/jqlang/jq/blob/cff5336ec71b6fee396a95bb0e...
Jk, thanks for the info! It's nice to know it's available on the system by default when writing scripts for my team.
ope wait that's just bash