Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Json Variable from HTTP Request?
#2
Hi,
go to the "Http Request" settings.
Select:
input emulator V0  (The request will be executed every time the V0==1)
Output emulator V1  (This variable will store the http json request)

Add the script "Json to variable converter". Go to the settings:
Input emulator V1
Output emulator V2
Value json path: Val
Save

Add a button for emulator V0
Add a "Value display" for V1
Add a "Value display" for V2

Reload the project to restart the emulator

Click on the button to set the V0 to 1
The request will be executed
The http response will be stored in the variable V1
The converter will extract the value of the field Val to V2
You have to see the results to the value displays.

I have tested. It works fine
Reply


Messages In This Thread
RE: Json Variable from HTTP Request? - by iliaslamprou - 09-07-2023, 10:38 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)