Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandramartinez/df5527cf564f8324c0bf283872ce2946 to your computer and use it in GitHub Desktop.
Save alexandramartinez/df5527cf564f8324c0bf283872ce2946 to your computer and use it in GitHub Desktop.
%dw 2.0
output application/json
var newObject = {
fieldC: "Field C Value"
}
var newObject2 = {
fieldD: "Field D Value",
object2: {
fieldE: "Field E Value"
}
}
---
{
(payload),
(newObject),
(newObject2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment