Advise on how to read the following json file
Posted
#1
(In Topic #1210)
Enthusiast

I have the following line coming in from my Server
Code (gambas)
- \{"messages":\{"transactionId":["Invalid value: 5be3f476-f73e-4968-9ea5-721f622eaca2"]}}
but I can not seem to work out how I read in the information from the "transactionId"
i have this so far (and this works in other areas of my code
Code (gambas)
- Global.addtoStatusList("Sorry a error was detected")
- ' Success - read data
- global.AddToDebugList(global.buffer)
- Debug global.buffer
- Global.addtoStatusList("Terminal Offline or a Error has happened")
- MessageFunctions.SendToPoSterminal("Status|OFFLINE")
- 'SendtoPoS Offline to PinPad (Show PoS would show the Chip&Pin Icon with the cross though it)
- Case "transactionid"
I need to send the "Invalid value: 5be3f476-f73e-4968-9ea5-721f622eaca2" back to my user as a message on screen but i can not for the love of me work this one out (sorry but my brain has given up today) maybe a fresh pair of eyes will help
Many thanks in advance
Andy
Posted
Guru

it is "Invalid value: 5be3f476-f73e-4968-9ea5-721f622eaca2"
EDIT: Also "messages" is a collection so you are inspecting it wrong.
You want something more like this…
Code (gambas)
1 guest and 0 members have just viewed this.



