for each from json http request

36 views
Skip to first unread message

Aurésky Big-Hand

unread,
Sep 19, 2025, 9:08:58 AMSep 19
to Automate for Android
Hi everyone, 
I'm working on a very simple automation but I'm stuck on processing my response from the http request.

block HTTP REQUEST : 
Request Method : GET
Request Content type : JSON
Save response : Save to variable as text
Response Statut code : httpCode
Response content or filename : jsonResultText
Response headers dictionary : jsonResult
OK

IN
block For Each
Container : jsonDecode(jsonResultText)
Entry value : item
DO

IN
Show Toast
When Shown (Android 11+)
Message =item["user"]

It only show the first entry (308) not the second (54).
here response from myurl.com/fixture.php
[{"id":"2168","user":"308","user_phone":"xxx"}, {"id":"2178","user":"54","user_phone":"xxx"} ]

Did i forget some block ?

test macro.png

Aurésky Big-Hand

unread,
Sep 19, 2025, 12:36:15 PMSep 19
to Automate for Android
I finally get it, it was just missing a link from show toast OK to IN for each.
Reply all
Reply to author
Forward
0 new messages