path is specified, the top-level keys from the path.
Tip
All of the JSON functions and operators are listed in the navigation and on the overview page
Accelerate your queries with generated columns
Syntax
Parameters
json_doc: required. The JSON document for which to return the keys. It must be a JSON object.
path: optional. The path generally starts with $ and uses . as the path separator. [] is used as the array subscript, which starts from 0.
Return value
Returns a JSON array. An empty array is returned if the JSON object is empty.NULL is returned if the JSON document is not a JSON object or the path does not identify a value in the document.
If the JSON document is an array nested with a JSON object, you can use the path parameter to obtain keys from that object.