OBJECT_KEYS
functionsupportedCore SQL functionsReturns an array containing the list of keys in the top-most level of the input object.
Syntax
OBJECT_KEYS( <object> )
Parameters
| Name | Required | Description |
|---|---|---|
object | required | The value for which you want the keys. The input value must be one of the following: An OBJECT. A VARIANT that contains a value of type OBJECT. |
Returns
The function returns an ARRAY containing the keys. If object is a structured OBJECT, the function returns an ARRAY(VARCHAR).
Usage notes
- If the object contains nested objects (e.g. objects within objects), this returns only the keys from the top-most level.