matt_bostrom
8 years agoNew Contributor II
Map data to json structure
hello. i am developing a Zendesk integration to auto create tickets from our source platforms. for a PoC I am able to achieve this by using the JSON generator as such
[
{
“tickets”: [
{
“subject”: “Integration Test 1”,
“comment”: { “body”: “Testing 1.” },
“priority”: “urgent”
},
{
“subject”: “Integration Test 2”,
“comment”: { “body”: “Testing 2” },
“priority”: “normal”
}
]
}
]
but when I am getting data/documents how do I convert that to the JSON structure wrapped in the outer tickets node?
Here is the mapper snap that will contain many records that need to eventually become tickets: