This question is about using rArduino_JSON library by @candide
If we have this Json string, how can we get the number of elements in array "dv"
I tried this code but nDevs = -1
If we have this Json string, how can we get the number of elements in array "dv"
JSON:
{"nam":"John Smith","id":"SDD01001","exp":"2512311400","ver":"1.40","dv":["ALX01001","ALX01002","ALX01003","ALX01004"]}
I tried this code but nDevs = -1
B4X:
Dim nDevs As Int = Jparse.Length(Array(2,"dv"))
Log("nDevices: ",nDevs)
For m = 0 To nDevs -1
Log("Device: ", Jparse.GetString(Array(2, "dv", m)))
Next