你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
treepath()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Enumerates all the path expressions that identify leaves in a dynamic object.
Syntax
treepath(
object)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
object | dynamic |
✔️ | A dynamic property bag object for which to enumerate the path expressions. |
Returns
An array of path expressions.
Examples
Expression | Evaluates to |
---|---|
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']"] |