dnmfarrell
12/29/2021, 7:51 PMjp
my bash-based json processor. https://github.com/dnmfarrell/jp#tutorial
I'm trying to make it easy for newcomers to learn something useful and accomplish something right away (even if the Venn diagram of users with bash who need to validate/transform json and don't already use jq is small). I'd appreciate any feedback anyone has. Thanks!Tom Larkworthy
12/30/2021, 7:42 PMdnmfarrell
12/31/2021, 1:47 PMTom Larkworthy
12/31/2021, 7:38 PMgcloud container images list-tags <http://eu.gcr.io/endpointservice/serversidecells|eu.gcr.io/endpointservice/serversidecells> \
--project=endpointservice --limit 1 --format=json | jq '.[0].tags[0]' --raw-output
which is '.[0].tags[0]' against:
[
{
"digest": "sha256:7c470e2220c6e3160b88d88db9dc5bd121203e7bd2a734bda2a43d7af0277a0c",
"tags": [
"20211217_143425"
],
"timestamp": {
"datetime": "2021-12-17 14:36:54+01:00",
"day": 17,
"fold": 0,
"hour": 14,
"microsecond": 0,
"minute": 36,
"month": 12,
"second": 54,
"year": 2021
}
}
]
dnmfarrell
01/03/2022, 3:37 PM