mapLeafValues(value: Any, callback: (value: Any, path: Path) -> Any): Any
Maps the terminal (leaf) nodes in the tree.
Leafs nodes cannot have an object or an array as a value.
Introduced in DataWeave version 2.2.2.
Example
This example transforms all the string values to upper case.
Example
This example returns a new value for an object, array, or attribute.