I have an object to response but It has an array to add multiple object into this inside array, you can see in below. The problem is if this inside array populate with push or something else Thingworx is stop running.
Response structure:
var last = {
plans: []
};
Populating this object:
last.plans[0] = Inputs.offers[1];
OR
last.plans.push(Inputs.offers[1]);
If I want to return last Thingworx is stop working.
But if return like this;
var result = Inputs.offers[1];
It's return well. What if more than 1 result in it. I used push into array that reason.
By the way, output type is JSON.
Strange should work, when you mean return last, you mean:
And when you say "stop working" what does you mean? which error message do you get?