Fellas,
Would someone kind to point me to a reasoning behind "func (t Time) MarshalJSON() ([]byte, error)" use "time.RFC3339Nano" formatting to spit out time in JSON, and
"func (t *Time) UnmarshalJSON(data []byte) error " uses "time.RFC3339" to parse the same timestamp? I do expect serialization/deserialization roundtrip to return exactly the same
data as it was at the beginning. In this case it loses subsecond precision, and it just bit me (doctor says I will live).
Is it a bug or some historically-important reasons that I am missing are in play there?
Thank you in advance!
Andrey