You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I store that in a variable called "wholeArray"
I loop through it for each url and it works.. but now I'm trying to use another loop inside of that loop for "times"
I tried using {{ prevBlockData@data.times }} or {{ loopData@jge__e.times }} but it doesn't work it says that it's an invalid data to loop through.. if I look in the logs both {{ prevBlockData@data.times }} and {{ loopData@jge__e.times }} do get replaced by the times array
Not sure why this is not working, if anyone could guide me I would appreciate it
oh and I tried using custom data for the loop and copy pasting a singular times array into it and that did work.. I concluded that the json array format is not the problem, maybe "" are the problem? and if so how do I get rid of them?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm doing a http request which returns a json array
[ { "url": "x", "times": [ { "time": "00:00:30" }, { "time": "00:01:00" }, { "time": "00:01:30" } ] }, { "url": "x", "times": [ { "time": "00:00:30" }, { "time": "00:01:00" }, { "time": "00:01:30" } ] } ]
I store that in a variable called "wholeArray"
I loop through it for each url and it works.. but now I'm trying to use another loop inside of that loop for "times"
I tried using {{ prevBlockData@data.times }} or {{ loopData@jge__e.times }} but it doesn't work it says that it's an invalid data to loop through.. if I look in the logs both {{ prevBlockData@data.times }} and {{ loopData@jge__e.times }} do get replaced by the times array
{ "{{ loopData@jge__e.times }}": "[{\"time\":\"00:00:30\"},{\"time\":\"00:01:00\"},{\"time\":\"00:01:30\"}]" }
Not sure why this is not working, if anyone could guide me I would appreciate it
Beta Was this translation helpful? Give feedback.
All reactions