Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Enumerates all the path expressions that identify leaves in a dynamic object.
treepath(
object)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
object | dynamic |
✔️ | A dynamic property bag object for which to enumerate the path expressions. |
An array of path expressions.
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']"] |