Payload update add new field to array or anywhere
Suppose you want to chage something at payload.test.address[0] record….
%dw 2.0
output application/json
---
payload update
{
case .test.address[0] -> your implementation here
}
helpful references https://medium.com/@shruthi_r/update-function-v-s-operator-in-dataweave-4aa9f2ab41cd
-
Archives
- October 2023 (1)
- October 2022 (2)
- October 2021 (2)
- February 2021 (5)
- January 2021 (4)
- December 2020 (3)
- October 2020 (2)
- August 2020 (1)
- June 2020 (1)
- April 2020 (1)
- February 2020 (1)
- December 2019 (7)
-
Categories
-
RSS
Entries RSS
Comments RSS