How to get distinct keys from nested object

I am trying to get distinct keys (key1, key2 ..) from a nested object as below example.
`
{
"labels": {
"key1": "value",
"key2": "value",
"key3": "value",
"key4": "value"
}
}
I dont know , how to aggreagate distinct keys from nested object.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.