Cannot coerce string to in MuleSoft DataWeave due to null
We cannot parse String to different data types when it is null or blank. We get Cannot coerce string to exception. Use default keyword to fix this issue. Sample code: output ....
We cannot parse String to different data types when it is null or blank. We get Cannot coerce string to exception. Use default keyword to fix this issue. Sample code: output ....
Sample Code: %dw 2.0 output application/json --- payload filterObject ((value, key) -> (key as String != "Test")) In the above code1. filterObject is used to filter JSON payload.2. key as ....