exported json is not json

Salvo Tomaselli tiposchi at tiscali.it
Mon Aug 25 00:58:12 PDT 2014


Reposting this to the list, since i had by mistake replied to Gehad.



> I added this as a Javascript object to be autoloaded into memory, I can fix
> this anyway.
Thanks 

> trailing commas is not in the JSON specifications but it is supported now
> by most modern web browsers.
But it's not supported by the json module in Python, or I wouldn't have 
noticed.

> This is because of the sampling rate, Temperature for example is not
> sampled every 10 milliseconds.
yes I know why that is, but on a logical level I'd say that a key-value 
thinghy would work better for this case. But would unfortunately also waste 
more space, which is bad.


More information about the subsurface mailing list