how to index a collection
Posted: Wednesday 5th December 2018 5:47am
I downloaded a file with json to a collection, now I need to index the collection to retrieve the data from the collection
listofdata = JSON.Decode(File.Load("~/airplane files/Conscendo S2.srm"))
myindex = "data" & "," & "autopilot" & "," & "altHoldRate"
Print listofdata.count ' this returns a number 9
Print listofdata.Length ' also returns a number 9
Print listofdata[myindex]
print count and length work and return a number, but the indexing does not work.
what am I doing wrong?
listofdata = JSON.Decode(File.Load("~/airplane files/Conscendo S2.srm"))
myindex = "data" & "," & "autopilot" & "," & "altHoldRate"
Print listofdata.count ' this returns a number 9
Print listofdata.Length ' also returns a number 9
Print listofdata[myindex]
print count and length work and return a number, but the indexing does not work.
what am I doing wrong?