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)'