fixed json serialization for Time