treepath()

使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

列舉識別動態物件中離職的所有路徑表達式。

語法

treepath( 物件)

深入瞭解 語法慣例。

參數

姓名 類型 必要 描述
object dynamic ✔️ 要列舉路徑表達式的動態屬性包物件。

傳回

路徑表達式的陣列。

範例

運算式 評估為
treepath(parse_json('{"a":"b", "c":123}')) ["['a']","['c']"]
treepath(parse_json('{"prop1":[1,2,3,4], "prop2":"value2"}')) ["['prop1']","['prop1'][0]","['prop2']"]
treepath(parse_json('{"listProperty":[100,200,300,"abcde",{"x":"y"}]}')) ["['listProperty']","['listProperty'][0]","['listProperty'][0]['x']"]