gtfierro / giles

Golang implementation of sMAP archiver
GNU General Public License v3.0
8 stars 2 forks source link

Nanosecond representation returned in scientific notation #41

Closed gtfierro closed 9 years ago

gtfierro commented 9 years ago
smap> select data before now as ns where uuid = "50e4113d-f58e-468f-b197-8b90a49d42e9";
{
  "Readings": [
    [   
    1.431290271944557e+18,
    577 
    ]   
  ],  
  "uuid": "50e4113d-f58e-468f-b197-8b90a49d42e9"
}

This is an issue with not having a struct used as the basis for json.Marshal, so there's no way to tell the serializer to treat it as a number and not as a formatted string.