Change the way JSON encoder marshal/unmarshal time structures for Scan object