On Sun, Aug 24, 2014 at 6:33 PM, Salvo Tomaselli <tipos...@tiscali.it> wrote:
> Hello, > > I was trying to work with the exported json and I've encountered some > problems. > > > - It doesn't really seem to be valid json. > > json should be all contained within {}, but it's not. > That initial "trips=" is probably incorrect. > I added this as a Javascript object to be autoloaded into memory, I can fix this anyway. > > - Commas at the end of lists. > [1,2,3] is ok > [1,2,3,] is not > > I am guessing that javascript uses a more lenient parser than Python. > trailing commas is not in the JSON specifications but it is supported now by most modern web browsers. > > - Samples oddity > [2740,5486,0,0],[2760,5182,0,0],[2780,0,0,299150] > > Having a list of samples is good, but having the samples be lists of values > that represent different things (by the way I have no idea what these 0 > are) > This is because of the sampling rate, Temperature for example is not sampled every 10 milliseconds. > and that also changes in size seems like a poor idea to me. > > Best > -- > Salvo Tomaselli > > "Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di > senso, ragione ed intelletto intendesse che noi ne facessimo a meno." > -- Galileo Galilei > > http://ltworf.github.io/ltworf/ > _______________________________________________ > subsurface mailing list > subsurface@hohndel.org > http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface >
_______________________________________________ subsurface mailing list subsurface@hohndel.org http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface