Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract data from long Json message
#3
Thumbs Up 
(04-13-2024, 06:55 PM)iliaslamprou Wrote: Hi,
1. Store the json message to a Variable. Add a value display to see your Json
2. Add the script "Json to Variable converter":
Select as input the ariable with the text.
Select as output the variable Emulator V0
Value json path: state/reported/AM..4:10-1 
Add a value display for this variable. You have to see the hex number: 04bc
3. Add the script "Hex Converter":
Select as input the variable Emulator V0
Select as output the variable Emulator V1
Type: Hex to INT
Hex Format: 12ef
Add a value display for the Variable emulator V1.
You will see the value: 04bc

Hi Ilias,

thanks a lot, "Value json path: state/reported/...." this part is what i needed. All works fine now. Thank a lot for the quick reply.  Have a nice weekend, and again greatly appreciate your reply.
Reply


Messages In This Thread
Extract data from long Json message - by dns85 - 04-12-2024, 09:22 PM
RE: Extract data from long Json message - by dns85 - 04-13-2024, 07:17 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)