pathToSearch
(string, required): The dot-notation path string that specifies the location of the value you want to extract from the input object. For example, "user.address.city"
would retrieve the city
value from the address
object nested within the user
object.
obj
(object, required): The input object or array from which you want to extract a value using the specified path.
result
(string): The value extracted from the input object at the specified path location. If the path is not found in the object, the output will be an empty string.obj
input of the Path node.
pathToSearch
input. For example, if you want to get the city from an address object nested within a user object, you would enter "user.address.city"
.
result
output of the Path node. You can then use this output as an input for other nodes in your spell.
obj
input of the Path node.pathToSearch
input to "address.city"
.result
output of the Path node will contain the string "Anytown"
, which you can use in other parts of your spell..
), and array indices are specified using square brackets ([]
).