Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandramartinez/232a52f1c59e0db2327ac9f9ffc3a89a to your computer and use it in GitHub Desktop.
Save alexandramartinez/232a52f1c59e0db2327ac9f9ffc3a89a 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