For that Output I'd write something more like:
{
"translationMap": {
"wrapcode": "$..wrapUpCode",
"wrapcodenote": "$..wrapUpNote"
},
"translationMapDefaults": {
"wrapcode": "[\"1\"]",
"wrapcodenote": "[\"1\"]"
},
"successTemplate": "{ \"wrapcode\": ${wrapcode}, \"wrapcodenote\": ${wrapcodenote}}"
}
Not positive of everything...but that should adapt to however many arrays you have in the output and produce parallel arrays of values. The .. in the Translatio Map says, basically, "find the value named....underneath the path..."
You'll need to change the Input Contract to have wrapcode and wrapcodenote set as arrays each with one item listed in the array.
------------------------------
George Ganahl GCP, GCSME, ICCE, ICHD, etc.
Technical Adoption Champion
Genesys
------------------------------