Create temporary object (e.g. List) for mapping in OIC
Summary
Temporary object for mappingContent
Hi,
Let's say that I want to implement a rest API that will return a JSON array, but this array will be filled in using a loop under certain conditions. How can I achieve this in OIC?
For instance, if i want to implement the following javascript code in OIC:
var cars = ["Saab", "Volvo", "BMW"]
var result = [];
cars.forEach(element => {
if(element == "Saab" || element == "Volvo"){
result.push(element);
}
});
Thanks,
Paulo
Tagged:
0