Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get values from a Json message
#3
Photo 
Hi,
I have a similar problem. How to get value from array?
{
  "dio" : {
    "do" : [ 0, 1, 0, 0, 0, 1, 0 ],
    "ro" : [ 0, 0, 0, 0, 0, 1, 0 ],
    "di" : [ 0, 0, 1, 0, 1, 0, 0, 0 ]
  }
}


I did this: dio/ro[0] (Error:No value for ro[0])
Reply


Messages In This Thread
RE: Settings for value readings - by iliaslamprou - 05-29-2022, 07:07 PM
RE: Settings for value readings - by Andrey_iv - 11-08-2022, 05:35 PM
RE: Settings for value readings - by iliaslamprou - 11-08-2022, 09:25 PM
RE: Settings for value readings - by Andrey_iv - 11-09-2022, 04:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)