Please, try with the following DataWeave expression:
%dw 2.0
output application/json
---
payload.rootPath replace "/" with ""
Note that this expression will replace all occurences of /. So, if rootPath is /root/subdir, the result will be rootsubdir.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more