No Spaces on JSON.Decode
Posted
#1
(In Topic #192)
Trainee
i.e.
{
"Foo" : "Bar Bar Foo"
}
When I get the data for "Foo" it comes up as…
"BarBarFoo" instead of "Bar Bar Foo"
So am I forgetting something.
Posted
Guru

Have a look at the attached code.
<IMG src="http://www.cogier.com/gambas/Wackedout.jpg">
</IMG>
Posted
Trainee
Ok I found out it was before the JSON.Decode, it seems to be
The "FileLine" var has no spaces. am I doing something wrong with the "Input" statement?
Posted
Trainee
Thanks for the help!
Posted
Enthusiast

listofdata = JSON.Decode(File.Load("~/airplane files/Conscendo S2.srm"))
myindex = "data" & "," & "autopilot" & "," & "altHoldRate"
Print listofdata.count
Print listofdata.Length
Print listofdata[myindex]
End
what am I doing wrong
Posted
Regular

1 guest and 0 members have just viewed this.


