time is Timestamp in DB, long in json