10-03-2019 04:05 PM
I am running into a very weird issue.
Big Picture - doing a bunch of operations but finally have to make a REST API call
{"field1": "random_values",
"field2": [ { "field5": "451037", "field6": "d1"} ],
"field3": "test",
"field4": "True"
}
I have generated all the values through various operations - but not sure how to generate the complete payload.
Any pointers.
10-03-2019 11:31 PM
can you try using a for loop for field2 in JSON generator
10-07-2019 05:41 AM
"field": [
#set($End = $length) ## length is length of field array
#set($Range =[0..$End])
#foreach($i in $Range)
{
"value": {
"key1":[{"value":$val1[$i]}],
"key2":[{"value":$val2[$i]}]
}
}
#if($i != $End),
#end
#end
]
10-04-2019 06:47 AM
Can you please share some examples