What DataWeave 2.0 type can be used as input to a mapObject operation?
What DataWeave 2.0 type can be used as input to a mapObject operation?
The mapObject operation in DataWeave 2.0 is specifically designed to iterate over an object. Therefore, the correct input type for mapObject is an Object. This operation applies a transformation function to each key-value pair in the Object, making it the appropriate type for this function.
dont confuse with map function map uses arrays mapObject uses obect
Iterates over an object using a mapper that acts on keys, values, or indices of that object. https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-mapobject