skip to Main Content

xidel: how to retrieve value from JSON key containing dots(.)?

I try to retrieve 1 in : $ cat object.json { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1" } } } $ xidel -e '($json).metadata.annotations["deployment.kubernetes.io/revision"]' -s object.json { "deployment.kubernetes.io/revision": "1" } Tried '($json).metadata.annotations."deployment.kubernetes.io/revision"' '($json).metadata.annotations.("deployment.kubernetes.io/revision")' '($json).metadata.annotations.(deployment.kubernetes.io/revision)'

VIEW QUESTION

AWS CLI providing of a param as escaped JSON fails when referenced as a variable – Amazon Web Sevices

I'm a little bit desperate to automate the AVRO schema registration for AWS Glue Schema Registry. According to the official documentation (https://docs.aws.amazon.com/glue/latest/dg/schema-registry-gs.html#schema-registry-gs4) to register a new AVRO schema following command must be executed: aws glue create-schema --registry-id RegistryName="my-registry-name" --schema-name testschema…

VIEW QUESTION
Back To Top
Search