Search found 27 matches

by grayghost4
Tuesday 11th December 2018 8:05am
Forum: General
Topic: Json formating output
Replies: 10
Views: 1538

Re: Json formating output

Thanks that works

I just wish I knew enough to understand the two lines .... but I will keep learning :D
by grayghost4
Monday 10th December 2018 4:35pm
Forum: General
Topic: Json formating output
Replies: 10
Views: 1538

Re: Json formating output

Thank you for your reply All I get from the download is the same thing you have in your post and a list of clients. I must be doing something wrong with the download. I think the use of the Collection variable is what is removing the format from the data. so I will have to use a string or string arr...
by grayghost4
Sunday 09th December 2018 5:51pm
Forum: General
Topic: Json formating output
Replies: 10
Views: 1538

Re: Json formating output

this is my original file : { "data": { "autopilot": { "aircraftType": 0, "altHoldRate": 50 } } } then I run this program : Public Sub Form_Open() Dim cReciverDta As Collection cReciverDta = JSON.Decode(File.Load("~/airplane files/testfile.txt")) File.save(("~/airplane files/testfile2.txt"), JSON.Enc...
by grayghost4
Saturday 08th December 2018 6:05am
Forum: General
Topic: Json formating output
Replies: 10
Views: 1538

Json formating output

how do I output a file using Json with line feeds and tabs ? this is what I get now: {"data":{"autopilot":{"aircraftType":0,"altHoldRate":10,"attitude":{"0":{"0":{"envelopeNeg":0,"envelopePos":0,"feature":128},"1":{"envelopeNeg":0,"envelopePos":0,"feature":128}},"1":{"0":{"envelopeNeg":0,"envelopePo...
by grayghost4
Friday 07th December 2018 7:34pm
Forum: General
Topic: how to index a collection
Replies: 2
Views: 729

Re: how to index a collection

I found the answer to my to the question :

need to use "[ ]" instead of " , " .... square brackets instead of a comma
by grayghost4
Wednesday 05th December 2018 5:47am
Forum: General
Topic: how to index a collection
Replies: 2
Views: 729

how to index a collection

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 numbe...
by grayghost4
Wednesday 05th December 2018 5:09am
Forum: General
Topic: No Spaces on JSON.Decode
Replies: 5
Views: 1106

Re: No Spaces on JSON.Decode

I am also working with json and havine trouble indexing a collection. 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