qntfy / kazaam

Arbitrary transformations of JSON in Golang
MIT License
283 stars 54 forks source link

Escaping dots in source keys #99

Closed opolstianko closed 4 years ago

opolstianko commented 4 years ago

Hello I have source JSON with dots in keys like that:

{
   "dotted.key": "value"
}

Is there any way to access it ?

KevinWang15 commented 4 years ago

I'm able to do it like this

{
    "transformation": [
        {
            "operation": "shift",
            "keySeparator": " > ",
            "spec": {
                "name": "metadata > labels > app.kubernetes.io/name"
            }
        }
    ]
}