How to escape dot notation in get function?

I have a collection containing keys with dot in them.

How should I use the get function to get the value of them?
I have tried to escape it with \ or to use qutotation marks, but both are not working.

// not working
{{get(bodyData; "custom.element")}}
// not working
{{get(bodyData; "custom\.element")}}
// not working
{{get(bodyData; """custom.element""")}}
bodyData: {
  "user_name": "CSchulz",
  "custom.element": "1000",
}

Any idea how I can access this value?

Please provide an example of the input data structure.

The solution is very simple but it seems not documentated at all.

Use backticks:

{{get(data; "`custom.element`")}}

// Works also with the dot notation
{{get(data; "1.`custom.element`")}}
3 Likes