treepath()
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']"] |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for